public abstract class MobSpawnerBaseLogic
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
activatingRangeFromPlayer |
private Entity |
cachedEntity |
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 |
---|
MobSpawnerBaseLogic() |
Modifier and Type | Method and Description |
---|---|
abstract void |
broadcastEvent(int id) |
Entity |
getCachedEntity() |
private ResourceLocation |
getEntityId() |
double |
getMobRotation() |
double |
getPrevMobRotation() |
Entity |
getSpawnerEntity() |
abstract BlockPos |
getSpawnerPosition() |
abstract World |
getSpawnerWorld() |
private boolean |
isActivated() |
void |
readFromNBT(NBTTagCompound nbt) |
private void |
resetTimer() |
boolean |
setDelayToMin(int delay) |
void |
setEntityId(ResourceLocation id) |
void |
setNextSpawnData(WeightedSpawnerEntity p_184993_1_) |
void |
updateSpawner() |
NBTTagCompound |
writeToNBT(NBTTagCompound p_189530_1_) |
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
private Entity cachedEntity
private int maxNearbyEntities
private int activatingRangeFromPlayer
private int spawnRange
@Nullable private ResourceLocation getEntityId()
public void setEntityId(@Nullable ResourceLocation id)
private boolean isActivated()
public void updateSpawner()
private void resetTimer()
public void readFromNBT(NBTTagCompound nbt)
public NBTTagCompound writeToNBT(NBTTagCompound p_189530_1_)
public boolean setDelayToMin(int delay)
public Entity getCachedEntity()
public void setNextSpawnData(WeightedSpawnerEntity p_184993_1_)
public abstract void broadcastEvent(int id)
public abstract World getSpawnerWorld()
public abstract BlockPos getSpawnerPosition()
public double getMobRotation()
public double getPrevMobRotation()
@Nullable public Entity getSpawnerEntity()