public class ToolboxHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static WorldAttached<java.util.WeakHashMap<net.minecraft.util.math.BlockPos,ToolboxTileEntity>> |
toolboxes |
| Constructor and Description |
|---|
ToolboxHandler() |
| Modifier and Type | Method and Description |
|---|---|
static double |
distance(net.minecraft.util.math.vector.Vector3d location,
net.minecraft.util.math.BlockPos p) |
static void |
entityTick(net.minecraft.entity.Entity entity,
net.minecraft.world.World world) |
static double |
getMaxRange(net.minecraft.entity.player.PlayerEntity player) |
static java.util.List<ToolboxTileEntity> |
getNearest(net.minecraft.world.IWorld world,
net.minecraft.entity.player.PlayerEntity player,
int maxAmount) |
static void |
onLoad(ToolboxTileEntity te) |
static void |
onUnload(ToolboxTileEntity te) |
static void |
playerLogin(net.minecraft.entity.player.PlayerEntity player) |
static void |
syncData(net.minecraft.entity.player.PlayerEntity player) |
static void |
unequip(net.minecraft.entity.player.PlayerEntity player,
int hotbarSlot,
boolean keepItems) |
static boolean |
withinRange(net.minecraft.entity.player.PlayerEntity player,
ToolboxTileEntity box) |
public static final WorldAttached<java.util.WeakHashMap<net.minecraft.util.math.BlockPos,ToolboxTileEntity>> toolboxes
public static void onLoad(ToolboxTileEntity te)
public static void onUnload(ToolboxTileEntity te)
public static void entityTick(net.minecraft.entity.Entity entity,
net.minecraft.world.World world)
public static void playerLogin(net.minecraft.entity.player.PlayerEntity player)
public static void syncData(net.minecraft.entity.player.PlayerEntity player)
public static java.util.List<ToolboxTileEntity> getNearest(net.minecraft.world.IWorld world, net.minecraft.entity.player.PlayerEntity player, int maxAmount)
public static void unequip(net.minecraft.entity.player.PlayerEntity player,
int hotbarSlot,
boolean keepItems)
public static boolean withinRange(net.minecraft.entity.player.PlayerEntity player,
ToolboxTileEntity box)
public static double distance(net.minecraft.util.math.vector.Vector3d location,
net.minecraft.util.math.BlockPos p)
public static double getMaxRange(net.minecraft.entity.player.PlayerEntity player)