Class GymSignTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.GymSignTileEntity
- All Implemented Interfaces:
ISpecialTexture,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>
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.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
Fields 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
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.CompoundTagbooleanvoidload(net.minecraft.nbt.CompoundTag nbt) voidonDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) voidsaveAdditional(net.minecraft.nbt.CompoundTag nbt) 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, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, 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
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
-
Constructor Details
-
GymSignTileEntity
public GymSignTileEntity(GymSignType gymSignType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
load
public void load(net.minecraft.nbt.CompoundTag nbt) - Overrides:
loadin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag nbt) - 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()- 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) - Specified by:
onDataPacketin interfacenet.minecraftforge.common.extensions.IForgeBlockEntity
-
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
-