Class ToolboxHandler
java.lang.Object
com.simibubi.create.content.equipment.toolbox.ToolboxHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.createmod.catnip.data.WorldAttached<WeakHashMap<net.minecraft.core.BlockPos, ToolboxBlockEntity>> -
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<ToolboxBlockEntity> 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, ToolboxBlockEntity box)
-
Field Details
-
toolboxes
public static final net.createmod.catnip.data.WorldAttached<WeakHashMap<net.minecraft.core.BlockPos,ToolboxBlockEntity>> 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<ToolboxBlockEntity> 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, ToolboxBlockEntity 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)
-