Class AssemblyIOUnitBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractAssemblyRobotBlockEntity
me.desht.pneumaticcraft.common.block.entity.AssemblyIOUnitBlockEntity
- All Implemented Interfaces:
IAssemblyMachine,IGUIButtonSensitive,ILuaMethodProvider,IResettable,IDescSynced,IUpgradeHolder,net.minecraft.world.Nameable,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
AbstractPneumaticCraftBlockEntity.UpgradeHandlerNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsFields inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractAssemblyRobotBlockEntity
angles, oldAngles, speedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionAssemblyIOUnitBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet this machine's type.net.minecraftforge.items.IItemHandlervoidbooleanisIdle()Returns true when the machine is done with moving/drilling/...booleanvoidload(net.minecraft.nbt.CompoundTag tag) booleanpickupItem(Collection<AssemblyRecipe> list) booleanreset()Reset the machine's statevoidsaveAdditional(net.minecraft.nbt.CompoundTag tag) voidvoidMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractAssemblyRobotBlockEntity
getRenderBoundingBox, gotoNeighbour, onNeighborBlockUpdate, setControllerPos, setSpeed, tickCommonPreMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
tickCommonPostMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
addLuaMethods, countPlayersUsing, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getEnergyCap, getFluidCap, getHeatCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, handleUpdateTag, isGuiUseableByPlayer, nonNullLevel, onBlockRotated, onDescUpdate, onGuiUpdate, onLoad, onNeighborTileUpdate, onUpgradesChanged, readFromPacket, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, setRemoved, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighbours, writeToPacketMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, hasCustomOutlineRendering, onDataPacket, serializeNBTMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
clawProgress
public float clawProgress -
oldClawProgress
public float oldClawProgress
-
-
Constructor Details
-
AssemblyIOUnitBlockEntity
public AssemblyIOUnitBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
tickClient
public void tickClient()- Overrides:
tickClientin classAbstractTickingBlockEntity
-
tickServer
public void tickServer()- Overrides:
tickServerin classAbstractTickingBlockEntity
-
reset
public boolean reset()Description copied from interface:IResettableReset the machine's state- Returns:
- true when the machine is done resetting
-
pickupItem
- Returns:
- true if the controller should use air and display 'running'
-
isImportUnit
public boolean isImportUnit() -
gotoHomePosition
public void gotoHomePosition()- Overrides:
gotoHomePositionin classAbstractAssemblyRobotBlockEntity
-
isIdle
public boolean isIdle()Description copied from interface:IAssemblyMachineReturns true when the machine is done with moving/drilling/... and has returned to its idle position- Returns:
- true when the machine is idle
-
getAssemblyType
Description copied from interface:IAssemblyMachineGet this machine's type.- Returns:
- the type of assembly machine.
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classAbstractAssemblyRobotBlockEntity
-
getPrimaryInventory
public net.minecraftforge.items.IItemHandler getPrimaryInventory()- Specified by:
getPrimaryInventoryin classAbstractPneumaticCraftBlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classAbstractAssemblyRobotBlockEntity
-
canMoveToDiagonalNeighbours
public boolean canMoveToDiagonalNeighbours()- Specified by:
canMoveToDiagonalNeighboursin classAbstractAssemblyRobotBlockEntity
-