public abstract class AbstractSpawner
extends java.lang.Object
Constructor and Description |
---|
AbstractSpawner() |
Modifier and Type | Method and Description |
---|---|
abstract void |
broadcastEvent(int id) |
Entity |
getCachedEntity() |
double |
getMobRotation() |
double |
getPrevMobRotation() |
Entity |
getSpawnerEntity() |
abstract BlockPos |
getSpawnerPosition() |
abstract World |
getWorld() |
void |
read(CompoundNBT nbt) |
boolean |
setDelayToMin(int delay) |
void |
setEntityType(EntityType<?> type) |
void |
setNextSpawnData(WeightedSpawnerEntity nextSpawnData) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
public void setEntityType(EntityType<?> type)
public void tick()
public void read(CompoundNBT nbt)
public CompoundNBT write(CompoundNBT compound)
public Entity getCachedEntity()
public boolean setDelayToMin(int delay)
public void setNextSpawnData(WeightedSpawnerEntity nextSpawnData)
public abstract void broadcastEvent(int id)
public abstract World getWorld()
public abstract BlockPos getSpawnerPosition()
public double getMobRotation()
public double getPrevMobRotation()
@Nullable public Entity getSpawnerEntity()