public abstract class AbstractSpawner
extends java.lang.Object
コンストラクタと説明 |
---|
AbstractSpawner() |
修飾子とタイプ | メソッドと説明 |
---|---|
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)
Sets the delay to minDelay if parameter given is 1, else return false.
|
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)
@Nullable 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()