public class TileColossalChest
extends org.cyclops.cyclopscore.tileentity.CyclopsTileEntity
implements org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile, net.minecraft.inventory.container.INamedContainerProvider, net.minecraft.tileentity.IChestLid
| Modifier and Type | Field and Description |
|---|---|
float |
lidAngle
The current angle of the lid.
|
float |
prevLidAngle
The previous angle of the lid.
|
| Constructor and Description |
|---|
TileColossalChest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterface(net.minecraft.util.math.Vec3i blockPos) |
protected int |
calculateInventorySize() |
boolean |
canInteractWith(net.minecraft.entity.player.PlayerEntity entityPlayer) |
protected org.cyclops.cyclopscore.inventory.LargeInventory |
constructInventory() |
protected org.cyclops.cyclopscore.inventory.LargeInventory |
constructInventoryDebug() |
net.minecraft.inventory.container.Container |
createMenu(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity) |
static void |
detectStructure(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner)
Callback for when a structure has been detected for a spirit furnace block.
|
protected void |
ensureInventoryInitialized() |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.Direction facing) |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
java.util.List<net.minecraft.util.math.Vec3i> |
getInterfaceLocations() |
org.cyclops.cyclopscore.inventory.INBTInventory |
getInventory() |
org.cyclops.cyclopscore.inventory.SimpleInventory |
getLastValidInventory() |
float |
getLidAngle(float partialTicks) |
ChestMaterial |
getMaterial() |
static net.minecraft.util.math.Vec3i |
getMaxSize() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.math.Vec3d |
getRenderOffset() |
net.minecraft.util.Direction |
getRotation() |
net.minecraft.util.math.Vec3i |
getSize() |
int |
getSizeSingular() |
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
boolean |
hasCustomName() |
protected boolean |
isClientSide() |
boolean |
isStructureComplete() |
void |
read(net.minecraft.nbt.CompoundNBT tag) |
boolean |
receiveClientEvent(int i,
int j) |
void |
setCenter(net.minecraft.util.math.Vec3d center) |
void |
setCustomName(net.minecraft.util.text.ITextComponent name) |
void |
setInventory(org.cyclops.cyclopscore.inventory.SimpleInventory inventory) |
void |
setLastValidInventory(org.cyclops.cyclopscore.inventory.SimpleInventory lastValidInventory) |
void |
setMaterial(ChestMaterial material) |
void |
setRenderOffset(net.minecraft.util.math.Vec3d renderOffset) |
void |
setRotation(net.minecraft.util.Direction rotation) |
void |
setSize(net.minecraft.util.math.Vec3i size)
Set the size.
|
void |
updateTileEntity() |
net.minecraft.nbt.CompoundNBT |
write(net.minecraft.nbt.CompoundNBT tag) |
addCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, getNBTTagCompound, getStoredCapabilities, getUpdateBackoffTicks, invalidateCaps, isTicking, onDataPacket, onDirty, onLoad, onSendUpdate, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, transformFacingForRotation, writeGeneratedFieldsToNBT, writeToItemStackaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic float prevLidAngle
public float lidAngle
public net.minecraft.util.math.Vec3i getSize()
public void setSize(net.minecraft.util.math.Vec3i size)
size - the size to setpublic void setMaterial(ChestMaterial material)
public ChestMaterial getMaterial()
public org.cyclops.cyclopscore.inventory.SimpleInventory getLastValidInventory()
public void setLastValidInventory(org.cyclops.cyclopscore.inventory.SimpleInventory lastValidInventory)
public int getSizeSingular()
protected boolean isClientSide()
protected org.cyclops.cyclopscore.inventory.LargeInventory constructInventory()
protected org.cyclops.cyclopscore.inventory.LargeInventory constructInventoryDebug()
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic void read(net.minecraft.nbt.CompoundNBT tag)
read in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic net.minecraft.nbt.CompoundNBT write(net.minecraft.nbt.CompoundNBT tag)
write in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntityprotected int calculateInventorySize()
public void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic boolean receiveClientEvent(int i,
int j)
receiveClientEvent in class net.minecraft.tileentity.TileEntitypublic void setInventory(org.cyclops.cyclopscore.inventory.SimpleInventory inventory)
protected void ensureInventoryInitialized()
public org.cyclops.cyclopscore.inventory.INBTInventory getInventory()
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.Direction facing)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic boolean canInteractWith(net.minecraft.entity.player.PlayerEntity entityPlayer)
canInteractWith in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic void setCenter(net.minecraft.util.math.Vec3d center)
public void setRotation(net.minecraft.util.Direction rotation)
public net.minecraft.util.Direction getRotation()
getRotation in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic net.minecraft.util.math.Vec3d getRenderOffset()
public void setRenderOffset(net.minecraft.util.math.Vec3d renderOffset)
public static void detectStructure(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner)
world - The world.location - The location of one block of the structure.size - The size of the structure.valid - If the structure is being validated(/created), otherwise invalidated.originCorner - The origin cornerpublic boolean isStructureComplete()
public static net.minecraft.util.math.Vec3i getMaxSize()
public boolean hasCustomName()
public void setCustomName(net.minecraft.util.text.ITextComponent name)
public void addInterface(net.minecraft.util.math.Vec3i blockPos)
public java.util.List<net.minecraft.util.math.Vec3i> getInterfaceLocations()
public net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.inventory.container.INamedContainerProvider@Nullable
public net.minecraft.inventory.container.Container createMenu(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity)
createMenu in interface net.minecraft.inventory.container.IContainerProviderpublic float getLidAngle(float partialTicks)
getLidAngle in interface net.minecraft.tileentity.IChestLid