public class TileEntityAssemblyPlatform extends TileEntityTickableBase implements IAssemblyMachine, IResettable
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
float |
clawProgress |
float |
oldClawProgress |
| Constructor and Description |
|---|
TileEntityAssemblyPlatform() |
| Modifier and Type | Method and Description |
|---|---|
AssemblyProgram.EnumMachine |
getAssemblyType()
Get this machine's type.
|
net.minecraft.item.ItemStack |
getHeldStack() |
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
boolean |
isIdle()
Returns true when the machine is done with moving/drilling/...
|
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
void |
onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
Called when a neighboring block changes state (i.e.
|
boolean |
reset()
Reset the machine's state
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
setControllerPos(net.minecraft.util.math.BlockPos controllerPos)
Inform this machine of its controller's position.
|
void |
setHeldStack(net.minecraft.item.ItemStack stack) |
void |
setSpeed(float speed)
Sets the speed of the machine, used when Speed Upgrades are inserted in the Assembly Controller
|
void |
tick() |
addLuaMethods, clearCache, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, handleUpdateTag, isGuiUseableByPlayer, onBlockRotated, onDescUpdate, onFirstServerTick, onGuiUpdate, onNeighborTileUpdate, onUpgradesChanged, readFromPacket, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setCustomName, setPreserveStateOnBreak, setRemoved, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighbours, writeToPacketclearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityTickableBasepublic boolean isIdle()
IAssemblyMachineisIdle in interface IAssemblyMachinepublic boolean reset()
IResettablereset in interface IResettable@Nonnull public net.minecraft.item.ItemStack getHeldStack()
public void setHeldStack(@Nonnull
net.minecraft.item.ItemStack stack)
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityBasepublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityBasepublic void setSpeed(float speed)
IAssemblyMachinesetSpeed in interface IAssemblyMachinespeed - the speedpublic AssemblyProgram.EnumMachine getAssemblyType()
IAssemblyMachinegetAssemblyType in interface IAssemblyMachinepublic void setControllerPos(net.minecraft.util.math.BlockPos controllerPos)
IAssemblyMachinesetControllerPos in interface IAssemblyMachinecontrollerPos - the controller's blockpospublic void onNeighborBlockUpdate(net.minecraft.util.math.BlockPos fromPos)
TileEntityBaseonNeighborBlockUpdate in class TileEntityBasefromPos - the blockpos of the block that caused this updatepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBase