public class PluggableFacade extends PipePluggable implements IFacade
| Modifier and Type | Field and Description |
|---|---|
int |
activeState |
net.minecraft.block.state.BlockFaceShape |
blockFaceShape |
boolean |
isSideSolid |
static int |
SIZE |
FacadeInstance |
states |
definition, holder, side| Constructor and Description |
|---|
PluggableFacade(PluggableDefinition definition,
IPipeHolder holder,
net.minecraft.util.EnumFacing side,
FacadeInstance states) |
PluggableFacade(PluggableDefinition def,
IPipeHolder holder,
net.minecraft.util.EnumFacing side,
net.minecraft.nbt.NBTTagCompound nbt) |
PluggableFacade(PluggableDefinition def,
IPipeHolder holder,
net.minecraft.util.EnumFacing side,
net.minecraft.network.PacketBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeConnected()
PipePluggable version of
Block.canBeConnectedTo(net.minecraft.world.IBlockAccess, net.minecraft.util.math.BlockPos, EnumFacing). |
int |
getBlockColor(int tintIndex)
Called if the
IPluggableStaticBaker returns quads with tint indexes set to
data * 6 + key.side.ordinal(). |
net.minecraft.block.state.BlockFaceShape |
getBlockFaceShape()
PipePluggable version of
IBlockProperties.getBlockFaceShape(IBlockAccess, BlockPos, EnumFacing) |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox() |
float |
getExplosionResistance(net.minecraft.entity.Entity exploder,
net.minecraft.world.Explosion explosion)
PipePluggable version of
Block.getExplosionResistance(World, BlockPos, Entity, Explosion) |
PluggableModelKey |
getModelRenderKey(net.minecraft.util.BlockRenderLayer layer) |
IFacadePhasedState[] |
getPhasedStates() |
net.minecraft.item.ItemStack |
getPickStack()
Called whenever this pluggable is picked by the player (similar to Block.getPickBlock)
|
FacadeType |
getType() |
boolean |
isBlocking() |
boolean |
isHollow() |
boolean |
isSideSolid()
PipePluggable version of
IBlockProperties.isSideSolid(IBlockAccess, BlockPos, EnumFacing) |
void |
writeCreationPayload(net.minecraft.network.PacketBuffer buffer)
Writes the payload that will be passed into
PluggableDefinition.loadFromBuffer(IPipeHolder, EnumFacing, PacketBuffer) on the client. |
net.minecraft.nbt.NBTTagCompound |
writeToNbt() |
addDrops, canConnectToRedstone, getCapability, getInternalCapability, onPluggableActivate, onRemove, onTick, readPayload, scheduleNetworkUpdate, writePayloadpublic static final int SIZE
public final FacadeInstance states
public final boolean isSideSolid
public final net.minecraft.block.state.BlockFaceShape blockFaceShape
public int activeState
public PluggableFacade(PluggableDefinition definition, IPipeHolder holder, net.minecraft.util.EnumFacing side, FacadeInstance states)
public PluggableFacade(PluggableDefinition def, IPipeHolder holder, net.minecraft.util.EnumFacing side, net.minecraft.nbt.NBTTagCompound nbt)
public PluggableFacade(PluggableDefinition def, IPipeHolder holder, net.minecraft.util.EnumFacing side, net.minecraft.network.PacketBuffer buffer)
public net.minecraft.nbt.NBTTagCompound writeToNbt()
writeToNbt in class PipePluggablepublic void writeCreationPayload(net.minecraft.network.PacketBuffer buffer)
PipePluggablePluggableDefinition.loadFromBuffer(IPipeHolder, EnumFacing, PacketBuffer) on the client. (This is called
on the server and sent to the client). Note that this will be called *instead* of write and read payload.writeCreationPayload in class PipePluggablepublic net.minecraft.util.math.AxisAlignedBB getBoundingBox()
getBoundingBox in class PipePluggablepublic boolean isBlocking()
isBlocking in class PipePluggablepublic boolean canBeConnected()
PipePluggableBlock.canBeConnectedTo(net.minecraft.world.IBlockAccess, net.minecraft.util.math.BlockPos, EnumFacing).canBeConnected in class PipePluggablepublic boolean isSideSolid()
PipePluggableIBlockProperties.isSideSolid(IBlockAccess, BlockPos, EnumFacing)isSideSolid in class PipePluggablepublic float getExplosionResistance(@Nullable
net.minecraft.entity.Entity exploder,
net.minecraft.world.Explosion explosion)
PipePluggableBlock.getExplosionResistance(World, BlockPos, Entity, Explosion)getExplosionResistance in class PipePluggablepublic net.minecraft.block.state.BlockFaceShape getBlockFaceShape()
PipePluggableIBlockProperties.getBlockFaceShape(IBlockAccess, BlockPos, EnumFacing)getBlockFaceShape in class PipePluggablepublic net.minecraft.item.ItemStack getPickStack()
PipePluggablegetPickStack in class PipePluggablepublic PluggableModelKey getModelRenderKey(net.minecraft.util.BlockRenderLayer layer)
getModelRenderKey in class PipePluggablepublic int getBlockColor(int tintIndex)
PipePluggableIPluggableStaticBaker returns quads with tint indexes set to
data * 6 + key.side.ordinal(). "data" is passed in here as "tintIndex".getBlockColor in class PipePluggablepublic FacadeType getType()
public IFacadePhasedState[] getPhasedStates()
getPhasedStates in interface IFacade