public class MusicBlockTileEntity
extends net.minecraft.tileentity.TileEntity
implements net.minecraft.tileentity.ITickableTileEntity
Modifier and Type | Class and Description |
---|---|
static class |
MusicBlockTileEntity.BlockSoundRecord |
Constructor and Description |
---|
MusicBlockTileEntity() |
Modifier and Type | Method and Description |
---|---|
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
Called when you receive a TileEntityData packet for the location this
TileEntity is currently in.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT compound) |
void |
tick() |
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void tick()
tick
in interface net.minecraft.tileentity.ITickableTileEntity
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT compound)
load
in class net.minecraft.tileentity.TileEntity
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT compound)
save
in class net.minecraft.tileentity.TileEntity
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag
in class net.minecraft.tileentity.TileEntity
@Nullable public net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class net.minecraft.tileentity.TileEntity
public void onDataPacket(net.minecraft.network.NetworkManager net, net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
onDataPacket
in interface net.minecraftforge.common.extensions.IForgeTileEntity
net
- The NetworkManager the packet originated frompkt
- The data packet