Class AssemblyLaserBlockEntity
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.AssemblyLaserBlockEntity
- 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
ConstructorsConstructorDescriptionAssemblyLaserBlockEntity(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.IItemHandlerbooleangotoNeighbour(me.desht.pneumaticcraft.common.block.entity.AbstractAssemblyRobotBlockEntity.TargetDirections targetDirections) Instruct the robot arm to start moving to the neighbour in the given direction(s).booleanisIdle()Returns true when the machine is done with moving/drilling/...voidload(net.minecraft.nbt.CompoundTag tag) booleanreset()Reset the machine's statevoidsaveAdditional(net.minecraft.nbt.CompoundTag tag) voidvoidMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractAssemblyRobotBlockEntity
getRenderBoundingBox, gotoHomePosition, onNeighborBlockUpdate, setControllerPos, setSpeed, tickCommonPreMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
tickClient, 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
-
isLaserOn
public boolean isLaserOn
-
-
Constructor Details
-
AssemblyLaserBlockEntity
public AssemblyLaserBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
tickServer
public void tickServer()- Overrides:
tickServerin classAbstractTickingBlockEntity
-
startLasering
public void startLasering() -
gotoNeighbour
public boolean gotoNeighbour(me.desht.pneumaticcraft.common.block.entity.AbstractAssemblyRobotBlockEntity.TargetDirections targetDirections) Description copied from class:AbstractAssemblyRobotBlockEntityInstruct the robot arm to start moving to the neighbour in the given direction(s).- Overrides:
gotoNeighbourin classAbstractAssemblyRobotBlockEntity- Parameters:
targetDirections- the direction(s) to move in- Returns:
- true if the neighbour is diagonal to this arm
-
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.
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classAbstractAssemblyRobotBlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classAbstractAssemblyRobotBlockEntity
-
getPrimaryInventory
public net.minecraftforge.items.IItemHandler getPrimaryInventory()- Specified by:
getPrimaryInventoryin classAbstractPneumaticCraftBlockEntity
-
canMoveToDiagonalNeighbours
public boolean canMoveToDiagonalNeighbours()- Specified by:
canMoveToDiagonalNeighboursin classAbstractAssemblyRobotBlockEntity
-
reset
public boolean reset()Description copied from interface:IResettableReset the machine's state- Returns:
- true when the machine is done resetting
-