public abstract class TileEntityAssemblyRobot extends TileEntityTickableBase implements IAssemblyMachine, IResettable
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
float[] |
angles |
float[] |
oldAngles |
protected float |
speed |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canMoveToDiagonalNeighbours() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
void |
gotoHomePosition() |
boolean |
gotoNeighbour(me.desht.pneumaticcraft.common.tileentity.TileEntityAssemblyRobot.TargetDirections newDirections)
Instruct the robot arm to start moving to the neighbour in the given direction(s).
|
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.
|
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 |
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, getPrimaryInventory, 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, waitgetAssemblyType, isIdleresetpublic final float[] oldAngles
public final float[] angles
protected float speed
public 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 void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityTickableBasepublic void gotoHomePosition()
public boolean gotoNeighbour(@Nonnull
me.desht.pneumaticcraft.common.tileentity.TileEntityAssemblyRobot.TargetDirections newDirections)
newDirections - the direction(s) to move inpublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityBasepublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityBaseprotected abstract boolean canMoveToDiagonalNeighbours()
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic void setSpeed(float speed)
IAssemblyMachinesetSpeed in interface IAssemblyMachinespeed - the speed