Package net.minecraft.world.spawner
Class AbstractSpawner
java.lang.Object
net.minecraft.world.spawner.AbstractSpawner
-
Field Summary
Modifier and TypeFieldDescriptionprivate Entity
private static final org.apache.logging.log4j.Logger
private int
private int
private int
private WeightedSpawnerEntity
private double
private int
private int
private int
private final List<WeightedSpawnerEntity>
private int
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
broadcastEvent
(int p_98267_1_) private void
delay()
private ResourceLocation
abstract World
getLevel()
double
getoSpin()
abstract BlockPos
getPos()
double
getSpin()
private boolean
void
load
(CompoundNBT p_98270_1_) boolean
onEventTriggered
(int p_98268_1_) save
(CompoundNBT p_189530_1_) void
setEntityId
(EntityType<?> p_200876_1_) void
setNextSpawnData
(WeightedSpawnerEntity p_184993_1_) void
tick()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
spawnDelay
private int spawnDelay -
spawnPotentials
-
nextSpawnData
-
spin
private double spin -
oSpin
private double oSpin -
minSpawnDelay
private int minSpawnDelay -
maxSpawnDelay
private int maxSpawnDelay -
spawnCount
private int spawnCount -
displayEntity
-
maxNearbyEntities
private int maxNearbyEntities -
requiredPlayerRange
private int requiredPlayerRange -
spawnRange
private int spawnRange
-
-
Constructor Details
-
AbstractSpawner
public AbstractSpawner()
-
-
Method Details
-
getEntityId
-
setEntityId
-
isNearPlayer
private boolean isNearPlayer() -
tick
public void tick() -
delay
private void delay() -
load
-
save
-
getOrCreateDisplayEntity
-
onEventTriggered
public boolean onEventTriggered(int p_98268_1_) -
setNextSpawnData
-
broadcastEvent
public abstract void broadcastEvent(int p_98267_1_) -
getLevel
-
getPos
-
getSpin
public double getSpin() -
getoSpin
public double getoSpin() -
getSpawnerEntity
-