Class PokeStopTileEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.PokeStopTileEntity
All Implemented Interfaces:
net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class PokeStopTileEntity extends net.minecraft.world.level.block.entity.BlockEntity
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput

    Nested 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, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    PokeStopTileEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
    PokeStopTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addClaimer(UUID playerID)
     
    boolean
    canClaim(UUID playerID)
    Deprecated.
    boolean
    canClaim(net.minecraft.world.entity.player.Player player)
     
     
     
    getLootClaim(UUID playerID)
     
    getLootClaim(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.resources.ResourceLocation
     
    float
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    net.minecraft.nbt.CompoundTag
    getUpdateTag(net.minecraft.core.HolderLookup.Provider lookup)
     
    boolean
     
    boolean
    isUsableByPlayer(net.minecraft.world.entity.player.Player player)
     
    void
    loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider lookup)
     
    void
    onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt, net.minecraft.core.HolderLookup.Provider lookup)
     
    void
    removeClaimer(UUID playerID)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider lookup)
     
    setColor(Color color)
     
    setCooldownColor(Color cooldownColor)
     
    setLootTable(net.minecraft.resources.ResourceLocation lootTable)
     
    void
    setOneTimeUse(boolean oneTimeUse)
     
    setScale(float scale)
     

    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, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate
  • Constructor Details

    • PokeStopTileEntity

      public PokeStopTileEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
    • PokeStopTileEntity

      public PokeStopTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
  • Method Details

    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider lookup)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • loadAdditional

      public void loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider lookup)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider lookup)
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.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)
    • canClaim

      public boolean canClaim(net.minecraft.world.entity.player.Player player)
    • canClaim

      @Deprecated public boolean canClaim(UUID playerID)
      Deprecated.
    • getLootClaim

      public LootClaim getLootClaim(net.minecraft.world.entity.player.Player player)
    • getLootClaim

      public LootClaim getLootClaim(UUID playerID)
    • addClaimer

      public void addClaimer(UUID playerID)
    • removeClaimer

      public void removeClaimer(UUID playerID)
    • setOneTimeUse

      public void setOneTimeUse(boolean oneTimeUse)
    • isOneTimeUse

      public boolean isOneTimeUse()
    • isUsableByPlayer

      public boolean isUsableByPlayer(net.minecraft.world.entity.player.Player player)
    • getLootTable

      public net.minecraft.resources.ResourceLocation getLootTable()
    • setLootTable

      public PokeStopTileEntity setLootTable(net.minecraft.resources.ResourceLocation lootTable)
    • getScale

      public float getScale()
    • setScale

      public PokeStopTileEntity setScale(float scale)
    • getColor

      public Color getColor()
    • setColor

      public PokeStopTileEntity setColor(Color color)
    • getCooldownColor

      public Color getCooldownColor()
    • setCooldownColor

      public PokeStopTileEntity setCooldownColor(Color cooldownColor)