public class PluggableFacade extends PipePluggable implements IFacade
Modifier and Type | Field and Description |
---|---|
int |
activeState |
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.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 |
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, writePayload
public static final int SIZE
public final FacadeInstance states
public final boolean isSideSolid
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 PipePluggable
public void writeCreationPayload(net.minecraft.network.PacketBuffer buffer)
PipePluggable
PluggableDefinition.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 PipePluggable
public net.minecraft.util.math.AxisAlignedBB getBoundingBox()
getBoundingBox
in class PipePluggable
public boolean isBlocking()
isBlocking
in class PipePluggable
public boolean canBeConnected()
PipePluggable
Block.canBeConnectedTo(net.minecraft.world.IBlockAccess, net.minecraft.util.math.BlockPos, EnumFacing)
.canBeConnected
in class PipePluggable
public boolean isSideSolid()
PipePluggable
IBlockProperties.isSideSolid(IBlockAccess, BlockPos, EnumFacing)
isSideSolid
in class PipePluggable
public float getExplosionResistance(@Nullable net.minecraft.entity.Entity exploder, net.minecraft.world.Explosion explosion)
PipePluggable
Block.getExplosionResistance(World, BlockPos, Entity, Explosion)
getExplosionResistance
in class PipePluggable
public net.minecraft.item.ItemStack getPickStack()
PipePluggable
getPickStack
in class PipePluggable
public PluggableModelKey getModelRenderKey(net.minecraft.util.BlockRenderLayer layer)
getModelRenderKey
in class PipePluggable
public int getBlockColor(int tintIndex)
PipePluggable
IPluggableStaticBaker
returns quads with tint indexes set to
data * 6 + key.side.ordinal()
. "data"
is passed in here as "tintIndex"
.getBlockColor
in class PipePluggable
public FacadeType getType()
public IFacadePhasedState[] getPhasedStates()
getPhasedStates
in interface IFacade