public class MachineProperties<T extends TileForestry> extends java.lang.Object implements IMachineProperties<T>
| Constructor and Description |
|---|
MachineProperties(java.lang.Class<T> teClass,
java.lang.String name) |
MachineProperties(java.lang.Class<T> teClass,
java.lang.String name,
net.minecraft.util.math.AxisAlignedBB boundingBox) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.RayTraceResult |
collisionRayTrace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.Vec3d startVec,
net.minecraft.util.math.Vec3d endVec) |
net.minecraft.tileentity.TileEntity |
createTileEntity() |
net.minecraft.block.Block |
getBlock() |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
java.lang.String |
getName() |
java.lang.Class<T> |
getTeClass() |
boolean |
isFullCube(net.minecraft.block.state.IBlockState state) |
void |
registerModel(net.minecraft.item.Item item,
IModelManager manager) |
void |
registerTileEntity()
Registers the tile entity with MC.
|
void |
setBlock(net.minecraft.block.Block block) |
public MachineProperties(java.lang.Class<T> teClass, java.lang.String name)
public MachineProperties(java.lang.Class<T> teClass, java.lang.String name, net.minecraft.util.math.AxisAlignedBB boundingBox)
public void setBlock(net.minecraft.block.Block block)
setBlock in interface IMachineProperties<T extends TileForestry>@Nullable public net.minecraft.block.Block getBlock()
getBlock in interface IMachineProperties<T extends TileForestry>public net.minecraft.util.math.AxisAlignedBB getBoundingBox(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
getBoundingBox in interface IMachineProperties<T extends TileForestry>@Nullable
public net.minecraft.util.math.RayTraceResult collisionRayTrace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.Vec3d startVec,
net.minecraft.util.math.Vec3d endVec)
collisionRayTrace in interface IMachineProperties<T extends TileForestry>public void registerTileEntity()
IMachinePropertiesregisterTileEntity in interface IMachineProperties<T extends TileForestry>public void registerModel(net.minecraft.item.Item item,
IModelManager manager)
registerModel in interface IMachineProperties<T extends TileForestry>public net.minecraft.tileentity.TileEntity createTileEntity()
createTileEntity in interface IMachineProperties<T extends TileForestry>public java.lang.Class<T> getTeClass()
getTeClass in interface IMachineProperties<T extends TileForestry>public java.lang.String getName()
getName in interface net.minecraft.util.IStringSerializablepublic boolean isFullCube(net.minecraft.block.state.IBlockState state)
isFullCube in interface IMachineProperties<T extends TileForestry>