Class MobSpawnerEntity

java.lang.Object
net.glowstone.block.entity.BlockEntity
net.glowstone.block.entity.MobSpawnerEntity

public class MobSpawnerEntity extends BlockEntity
  • Constructor Details

    • MobSpawnerEntity

      public MobSpawnerEntity(GlowBlock block)
  • Method Details

    • loadNbt

      public void loadNbt(CompoundTag tag)
      Description copied from class: BlockEntity
      Read this BlockEntity's data from the saved tag.
      Overrides:
      loadNbt in class BlockEntity
      Parameters:
      tag - The tag to load from.
    • getState

      public GlowBlockState getState()
      Description copied from class: BlockEntity
      Create a new BlockState which will correspond to this block entity.
      Overrides:
      getState in class BlockEntity
      Returns:
      A GlowBlockState, or null to use a standard BlockState.
    • saveNbt

      public void saveNbt(CompoundTag tag)
      Description copied from class: BlockEntity
      Save this BlockEntity's data to NBT.
      Overrides:
      saveNbt in class BlockEntity
      Parameters:
      tag - The tag to save to.
    • getSpawning

      public org.bukkit.entity.EntityType getSpawning()
    • setSpawning

      public void setSpawning(org.bukkit.entity.EntityType spawning)
    • getDelay

      public int getDelay()
    • setDelay

      public void setDelay(int delay)