public abstract class AbstractComputerBlockEntity extends net.minecraft.block.entity.BlockEntity implements PipeHost, net.fabricmc.fabric.api.block.entity.BlockEntityClientSerializable
| Modifier and Type | Method and Description |
|---|---|
void |
checkNeighbors() |
void |
fromClientTag(net.minecraft.nbt.CompoundTag nbt) |
void |
fromTag(net.minecraft.nbt.CompoundTag nbt) |
net.minecraft.util.math.BlockPos |
getPipeHostPosition() |
net.minecraft.world.World |
getPipeHostWorld() |
Pipe[] |
getPipes()
Get the list of all pipes managed by this computer part.
|
Pipe |
getReceivingPipe(Face face,
Port port)
Receiving pipe for the specified face and port.
|
Pipe |
getSendingPipe(Face face,
Port port)
Sending pipe for the specified face and port.
|
void |
onChunkUnload()
Called when the chunk this block entity sits in is unloaded to allow disposing
state or notifying (still loaded) neighbors and such.
|
protected void |
readFromNBTCommon(net.minecraft.nbt.CompoundTag nbt) |
protected void |
readFromNBTForServer(net.minecraft.nbt.CompoundTag nbt) |
protected abstract void |
scheduleScan() |
protected void |
setNeighbor(Face face,
AbstractComputerBlockEntity neighbor) |
net.minecraft.nbt.CompoundTag |
toClientTag(net.minecraft.nbt.CompoundTag nbt) |
net.minecraft.nbt.CompoundTag |
toInitialChunkDataTag() |
net.minecraft.nbt.CompoundTag |
toTag(net.minecraft.nbt.CompoundTag nbtIn) |
protected void |
writeToNBTCommon(net.minecraft.nbt.CompoundTag nbt) |
protected void |
writeToNBTForServer(net.minecraft.nbt.CompoundTag nbt) |
applyMirror, applyRotation, createFromTag, getCachedState, getPos, getSquaredDistance, getSquaredRenderDistance, getType, getWorld, hasWorld, invalidate, isInvalid, markDirty, method_20525, onBlockAction, populateCrashReport, resetBlock, setPos, setWorld, shouldNotCopyTagFromItem, toUpdatePacket, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonBeforeWriteComplete, onWriteCompletepublic void onChunkUnload()
public Pipe[] getPipes()
public Pipe getReceivingPipe(Face face, Port port)
face - the face to get the port for.port - the port for which to get the port.Casing.getReceivingPipe(Face, Port)public Pipe getSendingPipe(Face face, Port port)
face - the face to get the port for.port - the port for which to get the port.Casing.getSendingPipe(Face, Port)public net.minecraft.world.World getPipeHostWorld()
getPipeHostWorld in interface PipeHostpublic net.minecraft.util.math.BlockPos getPipeHostPosition()
getPipeHostPosition in interface PipeHostpublic void fromTag(net.minecraft.nbt.CompoundTag nbt)
fromTag in class net.minecraft.block.entity.BlockEntitypublic net.minecraft.nbt.CompoundTag toTag(net.minecraft.nbt.CompoundTag nbtIn)
toTag in class net.minecraft.block.entity.BlockEntitypublic net.minecraft.nbt.CompoundTag toInitialChunkDataTag()
toInitialChunkDataTag in class net.minecraft.block.entity.BlockEntitypublic void checkNeighbors()
protected abstract void scheduleScan()
protected void setNeighbor(Face face, @Nullable AbstractComputerBlockEntity neighbor)
protected void readFromNBTForServer(net.minecraft.nbt.CompoundTag nbt)
protected void writeToNBTForServer(net.minecraft.nbt.CompoundTag nbt)
public void fromClientTag(net.minecraft.nbt.CompoundTag nbt)
fromClientTag in interface net.fabricmc.fabric.api.block.entity.BlockEntityClientSerializablepublic net.minecraft.nbt.CompoundTag toClientTag(net.minecraft.nbt.CompoundTag nbt)
toClientTag in interface net.fabricmc.fabric.api.block.entity.BlockEntityClientSerializableprotected void readFromNBTCommon(net.minecraft.nbt.CompoundTag nbt)
protected void writeToNBTCommon(net.minecraft.nbt.CompoundTag nbt)