public interface IPartHelper
Modifier and Type | Method and Description |
---|---|
CableRenderMode |
getCableRenderMode() |
boolean |
placeBus(net.minecraft.item.ItemStack is,
int x,
int y,
int z,
int side,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world)
use in use item, to try and place a IBusItem
|
boolean |
registerNewLayer(java.lang.String string,
java.lang.String layerInterface)
Register a new layer with the part layer system, this allows you to write
an in between between tile entities and parts.
|
void |
setItemBusRenderer(IPartItem i)
Register IBusItem with renderer
|
boolean registerNewLayer(java.lang.String string, java.lang.String layerInterface)
AE By Default includes,
1. ISidedInventory ( and by extension IInventory. )
2. IFluidHandler Forge Fluids
3. IPowerEmitter BC Power output.
4. IPowerReceptor BC Power input.
5. IEnergySink IC2 Power input.
6. IEnergySource IC2 Power output.
7. IPipeConnection BC Pipe Connections
As long as a valid layer is registered for a interface you can simply implement that interface on a part get implement it.
void setItemBusRenderer(IPartItem i)
boolean placeBus(net.minecraft.item.ItemStack is, int x, int y, int z, int side, net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world)
is
- ItemStack of an item which implements IPartItem
x
- x pos of party
- y pos of partz
- z pos of partside
- side which the part should be onplayer
- player placing partworld
- part in worldCableRenderMode getCableRenderMode()