Package net.minecraft.world.level
Class BaseSpawner
java.lang.Object
net.minecraft.world.level.BaseSpawner
-
Field Summary
Modifier and TypeFieldDescriptionprivate Entity
private static WeightedRandomList<SpawnData>
private static int
private static org.apache.logging.log4j.Logger
private int
private int
private int
private SpawnData
private double
private Random
private int
private int
private int
private WeightedRandomList<SpawnData>
private int
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
broadcastEvent(Level p_151322_, BlockPos p_151323_, int p_151324_)
void
clientTick(Level p_151320_, BlockPos p_151321_)
private void
private ResourceLocation
getEntityId(Level p_151333_, BlockPos p_151334_)
getOrCreateDisplayEntity(Level p_151315_)
double
getoSpin()
double
getSpin()
private boolean
isNearPlayer(Level p_151344_, BlockPos p_151345_)
void
load(Level p_151329_, BlockPos p_151330_, CompoundTag p_151331_)
boolean
onEventTriggered(Level p_151317_, int p_151318_)
save(Level p_151340_, BlockPos p_151341_, CompoundTag p_151342_)
void
serverTick(ServerLevel p_151312_, BlockPos p_151313_)
void
setEntityId(EntityType<?> p_45463_)
void
setNextSpawnData(Level p_151325_, BlockPos p_151326_, SpawnData p_151327_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
EVENT_SPAWN
private static final int EVENT_SPAWN- See Also:
- Constant Field Values
-
EMPTY_POTENTIALS
-
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 -
random
-
-
Constructor Details
-
BaseSpawner
public BaseSpawner()
-
-
Method Details
-
getEntityId
-
setEntityId
-
isNearPlayer
-
clientTick
-
serverTick
-
delay
-
load
-
save
-
getOrCreateDisplayEntity
-
onEventTriggered
-
setNextSpawnData
-
broadcastEvent
-
getSpin
public double getSpin() -
getoSpin
public double getoSpin() -
getSpawnerEntity
-
getSpawnerBlockEntity
-