Modifier and Type | Field and Description |
---|---|
boolean |
isHollow |
FacadePhasedState[] |
phasedStates |
FacadeType |
type |
Constructor and Description |
---|
FacadeInstance(FacadePhasedState[] phasedStates,
boolean isHollow) |
Modifier and Type | Method and Description |
---|---|
boolean |
areAllStatesSolid(net.minecraft.util.EnumFacing side) |
boolean |
canAddColour(net.minecraft.item.EnumDyeColor colour) |
static FacadeInstance |
createSingle(FacadeBlockStateInfo info,
boolean isHollow) |
net.minecraft.block.state.BlockFaceShape |
getBlockFaceShape(net.minecraft.util.EnumFacing side) |
FacadePhasedState |
getCurrentStateForStack() |
IFacadePhasedState[] |
getPhasedStates() |
FacadeType |
getType() |
boolean |
isHollow() |
static FacadeInstance |
readFromBuffer(PacketBufferBC buf) |
static FacadeInstance |
readFromNbt(net.minecraft.nbt.NBTTagCompound nbt) |
FacadeInstance |
withState(FacadePhasedState state) |
FacadeInstance |
withSwappedIsHollow() |
void |
writeToBuffer(PacketBufferBC buf) |
net.minecraft.nbt.NBTTagCompound |
writeToNbt() |
public final FacadePhasedState[] phasedStates
public final FacadeType type
public final boolean isHollow
public FacadeInstance(FacadePhasedState[] phasedStates, boolean isHollow)
public static FacadeInstance createSingle(FacadeBlockStateInfo info, boolean isHollow)
public static FacadeInstance readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
public net.minecraft.nbt.NBTTagCompound writeToNbt()
public static FacadeInstance readFromBuffer(PacketBufferBC buf)
public void writeToBuffer(PacketBufferBC buf)
public boolean canAddColour(net.minecraft.item.EnumDyeColor colour)
@Nullable public FacadeInstance withState(FacadePhasedState state)
public FacadePhasedState getCurrentStateForStack()
public FacadeInstance withSwappedIsHollow()
public boolean areAllStatesSolid(net.minecraft.util.EnumFacing side)
public net.minecraft.block.state.BlockFaceShape getBlockFaceShape(net.minecraft.util.EnumFacing side)
public FacadeType getType()
public IFacadePhasedState[] getPhasedStates()
getPhasedStates
in interface IFacade