Package net.minecraft.world.level
Class BaseSpawner
java.lang.Object
net.minecraft.world.level.BaseSpawner
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Entityprivate static final intprivate static final org.slf4j.Loggerprivate intprivate intprivate intprivate SpawnDataprivate doubleprivate intstatic final Stringprivate intprivate intprivate SimpleWeightedRandomList<SpawnData>private intprivate double
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidbroadcastEvent(Level p_151322_, BlockPos p_151323_, int p_151324_) voidclientTick(Level p_151320_, BlockPos p_151321_) private voidgetOrCreateDisplayEntity(Level p_254323_, RandomSource p_254353_, BlockPos p_254313_) private SpawnDatagetOrCreateNextSpawnData(Level p_254503_, RandomSource p_253892_, BlockPos p_254487_) doublegetoSpin()doublegetSpin()private booleanisNearPlayer(Level p_151344_, BlockPos p_151345_) voidload(Level p_151329_, BlockPos p_151330_, CompoundTag p_151331_) booleanonEventTriggered(Level p_151317_, int p_151318_) save(CompoundTag p_186382_) voidserverTick(ServerLevel p_151312_, BlockPos p_151313_) voidsetEntityId(EntityType<?> p_253682_, Level p_254041_, RandomSource p_254221_, BlockPos p_254050_) protected voidsetNextSpawnData(Level p_151325_, BlockPos p_151326_, SpawnData p_151327_) 
- 
Field Details- 
SPAWN_DATA_TAG- See Also:
 
- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
EVENT_SPAWNprivate static final int EVENT_SPAWN- See Also:
 
- 
spawnDelayprivate int spawnDelay
- 
spawnPotentials
- 
nextSpawnData
- 
spinprivate double spin
- 
oSpinprivate double oSpin
- 
minSpawnDelayprivate int minSpawnDelay
- 
maxSpawnDelayprivate int maxSpawnDelay
- 
spawnCountprivate int spawnCount
- 
displayEntity
- 
maxNearbyEntitiesprivate int maxNearbyEntities
- 
requiredPlayerRangeprivate int requiredPlayerRange
- 
spawnRangeprivate int spawnRange
 
- 
- 
Constructor Details- 
BaseSpawnerpublic BaseSpawner()
 
- 
- 
Method Details- 
setEntityIdpublic void setEntityId(EntityType<?> p_253682_, @Nullable Level p_254041_, RandomSource p_254221_, BlockPos p_254050_) 
- 
isNearPlayer
- 
clientTick
- 
serverTick
- 
delay
- 
load
- 
save
- 
getOrCreateDisplayEntity@Nullable public Entity getOrCreateDisplayEntity(Level p_254323_, RandomSource p_254353_, BlockPos p_254313_) 
- 
onEventTriggered
- 
setNextSpawnData
- 
getOrCreateNextSpawnDataprivate SpawnData getOrCreateNextSpawnData(@Nullable Level p_254503_, RandomSource p_253892_, BlockPos p_254487_) 
- 
broadcastEvent
- 
getSpinpublic double getSpin()
- 
getoSpinpublic double getoSpin()
- 
getSpawnerEntity
- 
getSpawnerBlockEntity
 
-