Class GymSignTileEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.GymSignTileEntity
- All Implemented Interfaces:
ISpecialTexture,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public class GymSignTileEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements ISpecialTexture
Tile entity form of a gym sign. Created by clienthax on 7/3/2015.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionGymSignTileEntity(GymSignType gymSignType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionGets the color of the sign.net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> net.minecraft.world.item.ItemStackGets the item in the sign.Gets the UUID of the player who placed the sign.net.minecraft.resources.ResourceLocationnet.minecraft.network.protocol.game.ClientboundBlockEntityDataPacketnet.minecraft.nbt.CompoundTaggetUpdateTag(net.minecraft.core.HolderLookup.Provider lookup) booleanvoidloadAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup) voidonDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt, net.minecraft.core.HolderLookup.Provider lookup) voidsaveAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup) voidUpdates the tile entity client-side.voidSets the color of the sign.voidsetDroppable(boolean b) voidsetItemInSign(net.minecraft.world.item.ItemStack item) Sets the item in the sign.voidSets the UUID of the player who placed the sign.Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate
-
Constructor Details
-
GymSignTileEntity
public GymSignTileEntity(GymSignType gymSignType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
loadAdditional
public void loadAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup) - Overrides:
loadAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
getColour
Gets the color of the sign.- Returns:
- The color of the sign.
-
setColour
Sets the color of the sign.- Parameters:
colour- The color of the sign.
-
getTexture
public net.minecraft.resources.ResourceLocation getTexture()- Specified by:
getTexturein interfaceISpecialTexture
-
sendChanges
public void sendChanges()Updates the tile entity client-side. -
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider lookup) - Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt, net.minecraft.core.HolderLookup.Provider lookup) - Specified by:
onDataPacketin interfacenet.neoforged.neoforge.common.extensions.IBlockEntityExtension
-
getOwnerUUID
Gets the UUID of the player who placed the sign.- Returns:
- The UUID of the player who placed the sign.
-
setOwner
Sets the UUID of the player who placed the sign.- Parameters:
owner- The UUID of the player who placed the sign.
-
getItemInSign
public net.minecraft.world.item.ItemStack getItemInSign()Gets the item in the sign.- Returns:
- The item in the sign.
-
getContents
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getContents() -
setItemInSign
public void setItemInSign(net.minecraft.world.item.ItemStack item) Sets the item in the sign.- Parameters:
item- The item in the sign.
-
setDroppable
public void setDroppable(boolean b) -
isDroppable
public boolean isDroppable() -
getGymSignType
-