public class MobSpawnerEntity extends BlockEntity
block| Constructor and Description |
|---|
MobSpawnerEntity(GlowBlock block) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDelay() |
org.bukkit.entity.EntityType |
getSpawning() |
GlowBlockState |
getState()
Create a new BlockState which will correspond to this block entity.
|
void |
loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.
|
void |
saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.
|
void |
setDelay(int delay) |
void |
setSpawning(org.bukkit.entity.EntityType spawning) |
destroy, getBlock, pulse, setSaveId, update, updateInRangepublic MobSpawnerEntity(GlowBlock block)
public void loadNbt(CompoundTag tag)
BlockEntityloadNbt in class BlockEntitytag - The tag to load from.public GlowBlockState getState()
BlockEntitygetState in class BlockEntitypublic void saveNbt(CompoundTag tag)
BlockEntitysaveNbt in class BlockEntitytag - The tag to save to.public org.bukkit.entity.EntityType getSpawning()
public void setSpawning(org.bukkit.entity.EntityType spawning)
public int getDelay()
public void setDelay(int delay)
Copyright © 2021. All rights reserved.