public final class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
CAULDRON_DETECTED |
static XorShift128Random |
RANDOM |
| Modifier and Type | Method and Description |
|---|---|
static int |
addToRandomInjectableAround(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection from,
net.minecraft.item.ItemStack stack)
Look around the tile given in parameter in all 6 position, tries to add
the items to a random injectable tile around.
|
static int |
addToRandomInventoryAround(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.item.ItemStack stack)
Tries to add the passed stack to any valid inventories around the given
coordinates.
|
static boolean |
checkLegacyPipesConnections(net.minecraft.world.IBlockAccess blockAccess,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
static boolean |
checkPipesConnections(net.minecraft.tileentity.TileEntity tile1,
net.minecraft.tileentity.TileEntity tile2) |
static int[] |
createSlotArray(int first,
int count) |
static void |
dropTryIntoPlayerInventory(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player) |
static net.minecraftforge.common.util.ForgeDirection |
get2dOrientation(net.minecraft.entity.EntityLivingBase entityliving)
Returns the cardinal direction of the entity depending on its
rotationYaw
|
static IAreaProvider |
getNearbyAreaProvider(net.minecraft.world.World world,
int i,
int j,
int k) |
static boolean |
isFakePlayer(net.minecraft.entity.player.EntityPlayer player) |
static boolean |
isPipeConnected(net.minecraft.world.IBlockAccess access,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection dir,
IPipeTile.PipeType type) |
static void |
preDestroyBlock(net.minecraft.world.World world,
int i,
int j,
int k) |
static cpw.mods.fml.common.network.internal.FMLProxyPacket |
toPacket(Packet packet,
int discriminator)
This subprogram transforms a packet into a FML packet to be send in the
minecraft default packet mechanism.
|
public static final boolean CAULDRON_DETECTED
public static final XorShift128Random RANDOM
public static int addToRandomInventoryAround(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.item.ItemStack stack)
stack - world - x - y - z - public static net.minecraftforge.common.util.ForgeDirection get2dOrientation(net.minecraft.entity.EntityLivingBase entityliving)
public static int addToRandomInjectableAround(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection from,
net.minecraft.item.ItemStack stack)
public static void dropTryIntoPlayerInventory(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player)
public static IAreaProvider getNearbyAreaProvider(net.minecraft.world.World world, int i, int j, int k)
public static void preDestroyBlock(net.minecraft.world.World world,
int i,
int j,
int k)
public static boolean isFakePlayer(net.minecraft.entity.player.EntityPlayer player)
public static boolean checkPipesConnections(net.minecraft.tileentity.TileEntity tile1,
net.minecraft.tileentity.TileEntity tile2)
public static boolean checkLegacyPipesConnections(net.minecraft.world.IBlockAccess blockAccess,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
public static boolean isPipeConnected(net.minecraft.world.IBlockAccess access,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection dir,
IPipeTile.PipeType type)
public static int[] createSlotArray(int first,
int count)
public static cpw.mods.fml.common.network.internal.FMLProxyPacket toPacket(Packet packet, int discriminator)