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.NbtCompound nbt) |
void |
fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.NbtCompound 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.NbtCompound nbt) |
protected void |
readFromNBTForServer(net.minecraft.nbt.NbtCompound nbt) |
protected abstract void |
scheduleScan() |
protected void |
setNeighbor(Face face,
AbstractComputerBlockEntity neighbor) |
net.minecraft.nbt.NbtCompound |
toClientTag(net.minecraft.nbt.NbtCompound nbt) |
net.minecraft.nbt.NbtCompound |
toInitialChunkDataNbt() |
net.minecraft.nbt.NbtCompound |
writeNbt(net.minecraft.nbt.NbtCompound nbtIn) |
protected void |
writeToNBTCommon(net.minecraft.nbt.NbtCompound nbt) |
protected void |
writeToNBTForServer(net.minecraft.nbt.NbtCompound nbt) |
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos, toUpdatePacketclone, 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.block.BlockState state,
net.minecraft.nbt.NbtCompound nbt)
fromTag in class net.minecraft.block.entity.BlockEntitypublic net.minecraft.nbt.NbtCompound writeNbt(net.minecraft.nbt.NbtCompound nbtIn)
writeNbt in class net.minecraft.block.entity.BlockEntitypublic net.minecraft.nbt.NbtCompound toInitialChunkDataNbt()
toInitialChunkDataNbt 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.NbtCompound nbt)
protected void writeToNBTForServer(net.minecraft.nbt.NbtCompound nbt)
public void fromClientTag(net.minecraft.nbt.NbtCompound nbt)
fromClientTag in interface net.fabricmc.fabric.api.block.entity.BlockEntityClientSerializablepublic net.minecraft.nbt.NbtCompound toClientTag(net.minecraft.nbt.NbtCompound nbt)
toClientTag in interface net.fabricmc.fabric.api.block.entity.BlockEntityClientSerializableprotected void readFromNBTCommon(net.minecraft.nbt.NbtCompound nbt)
protected void writeToNBTCommon(net.minecraft.nbt.NbtCompound nbt)