public abstract class MobSpawnerLogic extends Object
Modifier and Type | Field and Description |
---|---|
private double |
field_9159 |
private double |
field_9161 |
private static Logger |
LOGGER |
private int |
maxNearbyEntities |
private int |
maxSpawnDelay |
private int |
minSpawnDelay |
private Entity |
renderedEntity |
private int |
requiredPlayerRange |
private int |
spawnCount |
private int |
spawnDelay |
private MobSpawnerEntry |
spawnEntry |
private List<MobSpawnerEntry> |
spawnPotentials |
private int |
spawnRange |
Constructor and Description |
---|
MobSpawnerLogic() |
Modifier and Type | Method and Description |
---|---|
void |
fromTag(CompoundTag tag) |
private Identifier |
getEntityId() |
abstract BlockPos |
getPos() |
Entity |
getRenderedEntity() |
abstract World |
getWorld() |
private boolean |
isPlayerInRange() |
boolean |
method_8275(int int2) |
double |
method_8278() |
double |
method_8279() |
abstract void |
sendStatus(int status) |
void |
setEntityId(EntityType<?> type) |
void |
setSpawnEntry(MobSpawnerEntry spawnEntry) |
CompoundTag |
toTag(CompoundTag tag) |
void |
update() |
private void |
updateSpawns() |
private static final Logger LOGGER
private int spawnDelay
private final List<MobSpawnerEntry> spawnPotentials
private MobSpawnerEntry spawnEntry
private double field_9161
private double field_9159
private int minSpawnDelay
private int maxSpawnDelay
private int spawnCount
private int maxNearbyEntities
private int requiredPlayerRange
private int spawnRange
@Nullable private Identifier getEntityId()
public void setEntityId(EntityType<?> type)
private boolean isPlayerInRange()
public void update()
private void updateSpawns()
public void fromTag(CompoundTag tag)
public CompoundTag toTag(CompoundTag tag)
public boolean method_8275(int int2)
public void setSpawnEntry(MobSpawnerEntry spawnEntry)
public abstract void sendStatus(int status)
public abstract World getWorld()
public abstract BlockPos getPos()
@Environment(value=CLIENT) public double method_8278()
@Environment(value=CLIENT) public double method_8279()