public abstract class AbstractSpawner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
activatingRangeFromPlayer |
private Entity |
cachedEntity |
private static org.apache.logging.log4j.Logger |
LOGGER |
private int |
maxNearbyEntities |
private int |
maxSpawnDelay |
private int |
minSpawnDelay |
private double |
mobRotation |
private java.util.List<WeightedSpawnerEntity> |
potentialSpawns |
private double |
prevMobRotation |
private int |
spawnCount |
private WeightedSpawnerEntity |
spawnData |
private int |
spawnDelay |
private int |
spawnRange |
Constructor and Description |
---|
AbstractSpawner() |
Modifier and Type | Method and Description |
---|---|
abstract void |
broadcastEvent(int id) |
private void |
func_221409_a(Entity entityIn) |
Entity |
getCachedEntity() |
private ResourceLocation |
getEntityId() |
double |
getMobRotation() |
double |
getPrevMobRotation() |
Entity |
getSpawnerEntity() |
abstract BlockPos |
getSpawnerPosition() |
abstract World |
getWorld() |
private boolean |
isActivated() |
void |
read(CompoundNBT nbt) |
private void |
resetTimer() |
boolean |
setDelayToMin(int delay) |
void |
setEntityType(EntityType<?> type) |
void |
setNextSpawnData(WeightedSpawnerEntity nextSpawnData) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
private static final org.apache.logging.log4j.Logger LOGGER
private int spawnDelay
private final java.util.List<WeightedSpawnerEntity> potentialSpawns
private WeightedSpawnerEntity spawnData
private double mobRotation
private double prevMobRotation
private int minSpawnDelay
private int maxSpawnDelay
private int spawnCount
@Nullable private Entity cachedEntity
private int maxNearbyEntities
private int activatingRangeFromPlayer
private int spawnRange
@Nullable private ResourceLocation getEntityId()
public void setEntityType(EntityType<?> type)
private boolean isActivated()
public void tick()
private void func_221409_a(Entity entityIn)
private void resetTimer()
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()