Class ToolboxHandler
java.lang.Object
com.simibubi.create.content.curiosities.toolbox.ToolboxHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WorldAttached<WeakHashMap<net.minecraft.core.BlockPos,ToolboxTileEntity>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubledistance(net.minecraft.world.phys.Vec3 location, net.minecraft.core.BlockPos p) static voidentityTick(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level world) static doublegetMaxRange(net.minecraft.world.entity.player.Player player) static List<ToolboxTileEntity>getNearest(net.minecraft.world.level.LevelAccessor world, net.minecraft.world.entity.player.Player player, int maxAmount) static voidstatic voidstatic voidplayerLogin(net.minecraft.world.entity.player.Player player) static voidsyncData(net.minecraft.world.entity.player.Player player) static voidunequip(net.minecraft.world.entity.player.Player player, int hotbarSlot, boolean keepItems) static booleanwithinRange(net.minecraft.world.entity.player.Player player, ToolboxTileEntity box)
-
Field Details
-
toolboxes
public static final WorldAttached<WeakHashMap<net.minecraft.core.BlockPos,ToolboxTileEntity>> toolboxes
-
-
Constructor Details
-
ToolboxHandler
public ToolboxHandler()
-
-
Method Details
-
onLoad
-
onUnload
-
entityTick
public static void entityTick(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level world) -
playerLogin
public static void playerLogin(net.minecraft.world.entity.player.Player player) -
syncData
public static void syncData(net.minecraft.world.entity.player.Player player) -
getNearest
public static List<ToolboxTileEntity> getNearest(net.minecraft.world.level.LevelAccessor world, net.minecraft.world.entity.player.Player player, int maxAmount) -
unequip
public static void unequip(net.minecraft.world.entity.player.Player player, int hotbarSlot, boolean keepItems) -
withinRange
public static boolean withinRange(net.minecraft.world.entity.player.Player player, ToolboxTileEntity box) -
distance
public static double distance(net.minecraft.world.phys.Vec3 location, net.minecraft.core.BlockPos p) -
getMaxRange
public static double getMaxRange(net.minecraft.world.entity.player.Player player)
-