public abstract class MobSpawnerBaseLogic
extends java.lang.Object
Constructor and Description |
---|
MobSpawnerBaseLogic() |
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 |
readFromNBT(NBTTagCompound nbt) |
boolean |
setDelayToMin(int delay) |
void |
setEntityType(EntityType<?> type) |
void |
setNextSpawnData(WeightedSpawnerEntity nextSpawnData) |
void |
tick() |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
public void setEntityType(EntityType<?> type)
public void tick()
public void readFromNBT(NBTTagCompound nbt)
public NBTTagCompound writeToNBT(NBTTagCompound 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()