Class PixelmonSpawnerTileEntity

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.PixelmonSpawnerTileEntity
All Implemented Interfaces:
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 PixelmonSpawnerTileEntity extends net.minecraft.world.level.block.entity.BlockEntity
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    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
    Modifier and Type
    Field
    Description
     
    float
     
    boolean
     
    float
     
    int
     
    int
     
    int
     
     
    float
     
     
     
    int
     
    int
     
    boolean
     
    boolean
     
    boolean
     
    static final Set<net.minecraft.world.level.block.Block>
     
    static final Set<net.minecraft.world.level.block.Block>
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    PixelmonSpawnerTileEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
    PixelmonSpawnerTileEntity(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
     
    void
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    net.minecraft.nbt.CompoundTag
     
    static boolean
    isBlockValidForPixelmonSpawning(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, PixelmonSpawnerTileEntity.AreaType type)
     
    protected static boolean
    isMostlyEnclosedSpace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int radius)
     
    void
    load(net.minecraft.nbt.CompoundTag nbt)
     
    void
     
    void
    onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag nbt)
     
    static void
    tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos p_155254_, net.minecraft.world.level.block.state.BlockState p_155255_, PixelmonSpawnerTileEntity blockEntity)
     
    void
     

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

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
  • Field Details

    • VALID_LAND_FLOOR_MATERIALS

      public static final Set<net.minecraft.world.level.block.Block> VALID_LAND_FLOOR_MATERIALS
    • VALID_LAND_AIR_MATERIALS

      public static final Set<net.minecraft.world.level.block.Block> VALID_LAND_AIR_MATERIALS
    • pokemonList

      public List<PokemonRarity> pokemonList
    • spawnTick

      public int spawnTick
    • spawnRadius

      public int spawnRadius
    • maxSpawns

      public int maxSpawns
    • levelMin

      public int levelMin
    • levelMax

      public int levelMax
    • bossRatio

      public float bossRatio
    • shinyRatio

      public float shinyRatio
    • gmaxRatio

      public float gmaxRatio
    • uncatchable

      public boolean uncatchable
    • unbreedable

      public boolean unbreedable
    • unbattleable

      public boolean unbattleable
    • fireOnTick

      public boolean fireOnTick
    • spawnLocation

      public SpawnLocationType spawnLocation
    • aggression

      public Aggression aggression
    • spawnedPokemon

      public List<PixelmonEntity> spawnedPokemon
  • Constructor Details

    • PixelmonSpawnerTileEntity

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

      public PixelmonSpawnerTileEntity(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 nbt)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • load

      public void load(net.minecraft.nbt.CompoundTag nbt)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • isMostlyEnclosedSpace

      protected static boolean isMostlyEnclosedSpace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int radius)
    • isBlockValidForPixelmonSpawning

      public static boolean isBlockValidForPixelmonSpawning(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, PixelmonSpawnerTileEntity.AreaType type)
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag()
      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)
    • updateRedstone

      public void updateRedstone()
    • onActivate

      public void onActivate()
    • finishEdit

      public void finishEdit()
    • despawnAllPokemon

      public void despawnAllPokemon()
    • tick

      public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos p_155254_, net.minecraft.world.level.block.state.BlockState p_155255_, PixelmonSpawnerTileEntity blockEntity)