Package net.minecraft.server.level
Class ServerLevel
java.lang.Object
net.neoforged.neoforge.common.capabilities.CapabilityProvider<Level>
net.minecraft.world.level.Level
net.minecraft.server.level.ServerLevel
- All Implemented Interfaces:
AutoCloseable
,BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,LevelAccessor
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,ServerLevelAccessor
,SignalGetter
,WorldGenLevel
,ICapabilityProvider
,ICapabilityProviderImpl<Level>
,IBlockAndTintGetterExtension
,IBlockGetterExtension
,ILevelExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.Level
Level.ExplosionInteraction
Nested classes/interfaces inherited from class net.neoforged.neoforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet<BlockEventData>
private final List<BlockEventData>
private final LevelTicks<Block>
private LevelCapabilityData
private final ServerChunkCache
private final List<CustomSpawner>
private EndDragonFight
(package private) final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PartEntity<?>>
private static final int
private int
static final BlockPos
private final PersistentEntitySectionManager<Entity>
(package private) final EntityTickList
private final LevelTicks<Fluid>
private final GameEventDispatcher
private boolean
(package private) boolean
private static final org.slf4j.Logger
private static final int
boolean
(package private) final List<ServerPlayer>
private final PortalForcer
protected final Raids
static final IntProvider
static final IntProvider
private final RandomSequences
private final MinecraftServer
private final ServerLevelData
private final SleepStatus
private final StructureCheck
private final StructureManager
private static final IntProvider
static final IntProvider
private final boolean
Fields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, neighborUpdater, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY
Fields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS
-
Constructor Summary
ConstructorDescriptionServerLevel
(MinecraftServer p_214999_, Executor p_215000_, LevelStorageSource.LevelStorageAccess p_215001_, ServerLevelData p_215002_, ResourceKey<Level> p_215003_, LevelStem p_215004_, ChunkProgressListener p_215005_, boolean p_215006_, long p_215007_, List<CustomSpawner> p_215008_, boolean p_215009_, RandomSequences p_288977_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDuringCommandTeleport
(ServerPlayer p_8623_) void
addDuringPortalTeleport
(ServerPlayer p_8818_) void
addDuringTeleport
(Entity p_143335_) private boolean
boolean
addFreshEntity
(Entity p_8837_) void
addLegacyChunkEntities
(Stream<Entity> p_143312_) void
addNewPlayer
(ServerPlayer p_8835_) private void
addPlayer
(ServerPlayer p_8854_) void
addRespawnedPlayer
(ServerPlayer p_8846_) boolean
addWithUUID
(Entity p_8848_) void
addWorldGenChunkEntities
(Stream<Entity> p_143328_) private void
private void
boolean
areEntitiesLoaded
(long p_143320_) void
blockEvent
(BlockPos p_8746_, Block p_8747_, int p_8748_, int p_8749_) void
blockUpdated
(BlockPos p_8743_, Block p_8744_) void
broadcastDamageEvent
(Entity p_270420_, DamageSource p_270311_) void
broadcastEntityEvent
(Entity p_8650_, byte p_8651_) boolean
void
clearBlockEvents
(BoundingBox p_8723_) void
close()
void
destroyBlockProgress
(int p_8612_, BlockPos p_8613_, int p_8614_) private boolean
doBlockEvent
(BlockEventData p_8699_) private void
dumpBlockEntityTickers
(Writer p_143300_) private static void
dumpEntities
(Writer p_8782_, Iterable<Entity> p_8783_) explode
(Entity p_256039_, DamageSource p_255778_, ExplosionDamageCalculator p_256002_, double p_256067_, double p_256370_, double p_256153_, float p_256045_, boolean p_255686_, Level.ExplosionInteraction p_255827_) findClosestBiome3d
(Predicate<Holder<Biome>> p_215070_, BlockPos p_215071_, int p_215072_, int p_215073_, int p_215074_) findLightningRod
(BlockPos p_143249_) protected BlockPos
findLightningTargetAround
(BlockPos p_143289_) findNearestMapStructure
(TagKey<Structure> p_215012_, BlockPos p_215013_, int p_215014_, boolean p_215015_) void
gameEvent
(GameEvent p_215041_, Vec3 p_215042_, GameEvent.Context p_215043_) List<? extends EnderDragon>
getEntities
(EntityTypeTest<Entity, T> p_143281_, Predicate<? super T> p_143282_) <T extends Entity>
voidgetEntities
(EntityTypeTest<Entity, T> p_262152_, Predicate<? super T> p_261808_, List<? super T> p_261583_) <T extends Entity>
voidgetEntities
(EntityTypeTest<Entity, T> p_261842_, Predicate<? super T> p_262091_, List<? super T> p_261703_, int p_261907_) getEntity
(int p_8597_) getEntityOrPart
(int p_143318_) Deprecated.it.unimi.dsi.fastutil.longs.LongSet
int
getLevel()
int
getMapData
(String p_8785_) Collection<PartEntity<?>>
All part entities in this world.getPlayers
(Predicate<? super ServerPlayer> p_8796_) getPlayers
(Predicate<? super ServerPlayer> p_261698_, int p_262035_) getRaids()
getRandomSequence
(ResourceLocation p_287689_) long
getSeed()
float
private static <T> String
getTypeCount
(Iterable<T> p_143302_, Function<T, String> p_143303_) getUncachedNoiseBiome
(int p_203775_, int p_203776_, int p_203777_) void
globalLevelEvent
(int p_8811_, BlockPos p_8812_, int p_8813_) protected void
boolean
isCloseToVillage
(BlockPos p_8737_, int p_8738_) boolean
isFlat()
boolean
boolean
isNaturalSpawningAllowed
(BlockPos p_201919_) boolean
isNaturalSpawningAllowed
(ChunkPos p_201917_) boolean
isPositionEntityTicking
(BlockPos p_143341_) private boolean
isPositionTickingWithEntitiesLoaded
(long p_184111_) boolean
boolean
boolean
isVillage
(SectionPos p_8763_) void
levelEvent
(Player p_8684_, int p_8685_, BlockPos p_8686_, int p_8687_) static void
makeObsidianPlatform
(ServerLevel p_8618_) boolean
mayInteract
(Player p_8696_, BlockPos p_8697_) void
neighborChanged
(BlockPos p_215048_, Block p_215049_, BlockPos p_215050_) void
neighborChanged
(BlockState p_215035_, BlockPos p_215036_, Block p_215037_, BlockPos p_215038_, boolean p_215039_) boolean
noSave()
void
onBlockStateChange
(BlockPos p_8751_, BlockState p_8752_, BlockState p_8753_) void
onReputationEvent
(ReputationEventType p_8671_, Entity p_8672_, ReputationEventHandler p_8673_) void
onStructureStartsAvailable
(ChunkAccess p_196558_) players()
void
playSeededSound
(Player p_263330_, double p_263393_, double p_263369_, double p_263354_, Holder<SoundEvent> p_263412_, SoundSource p_263338_, float p_263352_, float p_263390_, long p_263403_) void
playSeededSound
(Player p_263545_, Entity p_263544_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) void
removePlayerImmediately
(ServerPlayer p_143262_, Entity.RemovalReason p_143263_) void
private void
private void
void
save
(ProgressListener p_8644_, boolean p_8645_, boolean p_8646_) void
saveDebugReport
(Path p_8787_) private void
int
sectionsToVillage
(SectionPos p_8829_) void
sendBlockUpdated
(BlockPos p_8755_, BlockState p_8756_, BlockState p_8757_, int p_8758_) private boolean
sendParticles
(ServerPlayer p_8637_, boolean p_8638_, double p_8639_, double p_8640_, double p_8641_, Packet<?> p_8642_) <T extends ParticleOptions>
booleansendParticles
(ServerPlayer p_8625_, T p_8626_, boolean p_8627_, double p_8628_, double p_8629_, double p_8630_, int p_8631_, double p_8632_, double p_8633_, double p_8634_, double p_8635_) <T extends ParticleOptions>
intsendParticles
(T p_8768_, double p_8769_, double p_8770_, double p_8771_, int p_8772_, double p_8773_, double p_8774_, double p_8775_, double p_8776_) boolean
setChunkForced
(int p_8603_, int p_8604_, boolean p_8605_) void
setDayTime
(long p_8616_) void
setDefaultSpawnPos
(BlockPos p_8734_, float p_8735_) void
setDragonFight
(EndDragonFight p_287779_) Deprecated.void
setMapData
(String p_143305_, MapItemSavedData p_143306_) void
setWeatherParameters
(int p_8607_, int p_8608_, boolean p_8609_, boolean p_8610_) private boolean
shouldDiscardEntity
(Entity p_143343_) boolean
shouldTickBlocksAt
(long p_184059_) void
startTickingChunk
(LevelChunk p_184103_) void
tick
(BooleanSupplier p_8794_) private void
void
tickChunk
(LevelChunk p_8715_, int p_8716_) void
tickCustomSpawners
(boolean p_8800_, boolean p_8801_) private void
private void
tickIceAndSnow
(boolean p_295330_, BlockPos p_295060_) void
tickNonPassenger
(Entity p_8648_) private void
tickPassenger
(Entity p_8663_, Entity p_8664_) protected void
tickTime()
toString()
boolean
tryAddFreshEntityWithPassengers
(Entity p_8861_) void
unload
(LevelChunk p_8713_) void
updateNeighborsAt
(BlockPos p_215045_, Block p_215046_) void
updateNeighborsAtExceptFromFacing
(BlockPos p_215052_, Block p_215053_, Direction p_215054_) void
private void
Methods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, addParticle, blockEntityChanged, createFireworks, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, disconnect, explode, explode, explode, explode, fillReportDetails, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, neighborShapeChanged, nextSubTickCount, playLocalSound, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, prepareWeather, registryAccess, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighbourForOutputSignal, updateSkyBrightness
Methods inherited from class net.neoforged.neoforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness
Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
Methods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShade
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getExistingBlockEntity, getModelDataManager
Methods inherited from interface net.neoforged.neoforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraft.world.level.LevelAccessor
addParticle, dayTime, gameEvent, gameEvent, gameEvent, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, hasChunk, levelEvent, neighborShapeChanged, nextSubTickCount, playSound, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTick
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
Methods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt, registryAccess
Methods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPosition
Methods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
Methods inherited from interface net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
Methods inherited from interface net.minecraft.world.level.ServerLevelAccessor
addFreshEntityWithPassengers
Methods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
Methods inherited from interface net.minecraft.world.level.WorldGenLevel
ensureCanWrite, setCurrentlyGenerating
-
Field Details
-
END_SPAWN_POINT
-
RAIN_DELAY
-
RAIN_DURATION
-
THUNDER_DELAY
-
THUNDER_DURATION
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EMPTY_TIME_NO_TICK
private static final int EMPTY_TIME_NO_TICK- See Also:
-
MAX_SCHEDULED_TICKS_PER_TICK
private static final int MAX_SCHEDULED_TICKS_PER_TICK- See Also:
-
players
-
chunkSource
-
server
-
serverLevelData
-
entityTickList
-
entityManager
-
gameEventDispatcher
-
noSave
public boolean noSave -
sleepStatus
-
emptyTime
private int emptyTime -
portalForcer
-
blockTicks
-
fluidTicks
-
raids
-
blockEvents
-
blockEventsToReschedule
-
handlingTick
private boolean handlingTick -
customSpawners
-
dragonFight
-
dragonParts
-
structureManager
-
structureCheck
-
tickTime
private final boolean tickTime -
randomSequences
-
capabilityData
-
-
Constructor Details
-
ServerLevel
public ServerLevel(MinecraftServer p_214999_, Executor p_215000_, LevelStorageSource.LevelStorageAccess p_215001_, ServerLevelData p_215002_, ResourceKey<Level> p_215003_, LevelStem p_215004_, ChunkProgressListener p_215005_, boolean p_215006_, long p_215007_, List<CustomSpawner> p_215008_, boolean p_215009_, @Nullable RandomSequences p_288977_)
-
-
Method Details
-
setDragonFight
Deprecated. -
setWeatherParameters
public void setWeatherParameters(int p_8607_, int p_8608_, boolean p_8609_, boolean p_8610_) -
getUncachedNoiseBiome
- Specified by:
getUncachedNoiseBiome
in interfaceLevelReader
-
structureManager
-
tick
-
shouldTickBlocksAt
public boolean shouldTickBlocksAt(long p_184059_) - Overrides:
shouldTickBlocksAt
in classLevel
-
tickTime
protected void tickTime() -
setDayTime
public void setDayTime(long p_8616_) -
tickCustomSpawners
public void tickCustomSpawners(boolean p_8800_, boolean p_8801_) -
shouldDiscardEntity
-
wakeUpAllPlayers
private void wakeUpAllPlayers() -
tickChunk
-
tickIceAndSnow
-
findLightningRod
-
findLightningTargetAround
-
isHandlingTick
public boolean isHandlingTick() -
canSleepThroughNights
public boolean canSleepThroughNights() -
announceSleepStatus
private void announceSleepStatus() -
updateSleepingPlayerList
public void updateSleepingPlayerList() -
getScoreboard
- Specified by:
getScoreboard
in classLevel
-
advanceWeatherCycle
private void advanceWeatherCycle() -
resetWeatherCycle
private void resetWeatherCycle() -
resetEmptyTime
public void resetEmptyTime() -
tickFluid
-
tickBlock
-
tickNonPassenger
-
tickPassenger
-
mayInteract
- Overrides:
mayInteract
in classLevel
-
save
-
saveLevelData
private void saveLevelData() -
getEntities
public <T extends Entity> List<? extends T> getEntities(EntityTypeTest<Entity, T> p_143281_, Predicate<? super T> p_143282_) -
getEntities
public <T extends Entity> void getEntities(EntityTypeTest<Entity, T> p_262152_, Predicate<? super T> p_261808_, List<? super T> p_261583_) -
getEntities
public <T extends Entity> void getEntities(EntityTypeTest<Entity, T> p_261842_, Predicate<? super T> p_262091_, List<? super T> p_261703_, int p_261907_) -
getDragons
-
getPlayers
-
getPlayers
-
getRandomPlayer
-
addFreshEntity
- Specified by:
addFreshEntity
in interfaceLevelWriter
-
addWithUUID
-
addDuringTeleport
-
addDuringCommandTeleport
-
addDuringPortalTeleport
-
addNewPlayer
-
addRespawnedPlayer
-
addPlayer
-
addEntity
-
tryAddFreshEntityWithPassengers
-
unload
-
removePlayerImmediately
-
destroyBlockProgress
- Specified by:
destroyBlockProgress
in classLevel
-
playSeededSound
public void playSeededSound(@Nullable Player p_263330_, double p_263393_, double p_263369_, double p_263354_, Holder<SoundEvent> p_263412_, SoundSource p_263338_, float p_263352_, float p_263390_, long p_263403_) - Specified by:
playSeededSound
in classLevel
-
playSeededSound
public void playSeededSound(@Nullable Player p_263545_, Entity p_263544_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) - Specified by:
playSeededSound
in classLevel
-
globalLevelEvent
- Overrides:
globalLevelEvent
in classLevel
-
levelEvent
- Specified by:
levelEvent
in interfaceLevelAccessor
-
getLogicalHeight
public int getLogicalHeight() -
gameEvent
- Specified by:
gameEvent
in interfaceLevelAccessor
-
sendBlockUpdated
- Specified by:
sendBlockUpdated
in classLevel
-
updateNeighborsAt
- Overrides:
updateNeighborsAt
in classLevel
-
updateNeighborsAtExceptFromFacing
public void updateNeighborsAtExceptFromFacing(BlockPos p_215052_, Block p_215053_, Direction p_215054_) - Overrides:
updateNeighborsAtExceptFromFacing
in classLevel
-
neighborChanged
- Overrides:
neighborChanged
in classLevel
-
neighborChanged
public void neighborChanged(BlockState p_215035_, BlockPos p_215036_, Block p_215037_, BlockPos p_215038_, boolean p_215039_) - Overrides:
neighborChanged
in classLevel
-
broadcastEntityEvent
- Overrides:
broadcastEntityEvent
in classLevel
-
broadcastDamageEvent
- Overrides:
broadcastDamageEvent
in classLevel
-
getChunkSource
- Specified by:
getChunkSource
in interfaceLevelAccessor
-
explode
public Explosion explode(@Nullable Entity p_256039_, @Nullable DamageSource p_255778_, @Nullable ExplosionDamageCalculator p_256002_, double p_256067_, double p_256370_, double p_256153_, float p_256045_, boolean p_255686_, Level.ExplosionInteraction p_255827_) -
blockEvent
- Overrides:
blockEvent
in classLevel
-
runBlockEvents
private void runBlockEvents() -
doBlockEvent
-
getBlockTicks
- Specified by:
getBlockTicks
in interfaceLevelAccessor
-
getFluidTicks
- Specified by:
getFluidTicks
in interfaceLevelAccessor
-
getServer
- Specified by:
getServer
in interfaceLevelAccessor
- Overrides:
getServer
in classLevel
-
getPortalForcer
-
getStructureManager
-
sendParticles
public <T extends ParticleOptions> int sendParticles(T p_8768_, double p_8769_, double p_8770_, double p_8771_, int p_8772_, double p_8773_, double p_8774_, double p_8775_, double p_8776_) -
sendParticles
public <T extends ParticleOptions> boolean sendParticles(ServerPlayer p_8625_, T p_8626_, boolean p_8627_, double p_8628_, double p_8629_, double p_8630_, int p_8631_, double p_8632_, double p_8633_, double p_8634_, double p_8635_) -
sendParticles
private boolean sendParticles(ServerPlayer p_8637_, boolean p_8638_, double p_8639_, double p_8640_, double p_8641_, Packet<?> p_8642_) -
getEntity
-
getEntityOrPart
Deprecated. -
getEntity
-
findNearestMapStructure
-
findClosestBiome3d
-
getRecipeManager
- Specified by:
getRecipeManager
in classLevel
-
noSave
public boolean noSave() -
getDataStorage
-
getMapData
- Specified by:
getMapData
in classLevel
-
setMapData
- Specified by:
setMapData
in classLevel
-
getFreeMapId
public int getFreeMapId()- Specified by:
getFreeMapId
in classLevel
-
setDefaultSpawnPos
-
getForcedChunks
public it.unimi.dsi.fastutil.longs.LongSet getForcedChunks() -
setChunkForced
public boolean setChunkForced(int p_8603_, int p_8604_, boolean p_8605_) -
players
- Specified by:
players
in interfaceEntityGetter
-
onBlockStateChange
- Overrides:
onBlockStateChange
in classLevel
-
getPoiManager
-
isVillage
-
isVillage
-
isCloseToVillage
-
sectionsToVillage
-
getRaids
-
getRaidAt
-
isRaided
-
onReputationEvent
public void onReputationEvent(ReputationEventType p_8671_, Entity p_8672_, ReputationEventHandler p_8673_) -
saveDebugReport
- Throws:
IOException
-
dumpEntities
- Throws:
IOException
-
dumpBlockEntityTickers
- Throws:
IOException
-
clearBlockEvents
-
blockUpdated
- Specified by:
blockUpdated
in interfaceLevelAccessor
-
getShade
- Specified by:
getShade
in interfaceBlockAndTintGetter
-
getAllEntities
-
toString
-
isFlat
public boolean isFlat() -
getSeed
public long getSeed()- Specified by:
getSeed
in interfaceWorldGenLevel
-
getDragonFight
-
getLevel
- Specified by:
getLevel
in interfaceServerLevelAccessor
-
getWatchdogStats
-
getTypeCount
-
makeObsidianPlatform
-
initCapabilities
protected void initCapabilities() -
getEntities
- Specified by:
getEntities
in classLevel
-
addLegacyChunkEntities
-
addWorldGenChunkEntities
-
startTickingChunk
-
onStructureStartsAvailable
-
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classLevel
- Throws:
IOException
-
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStats
in classLevel
-
areEntitiesLoaded
public boolean areEntitiesLoaded(long p_143320_) -
isPositionTickingWithEntitiesLoaded
private boolean isPositionTickingWithEntitiesLoaded(long p_184111_) -
isPositionEntityTicking
-
isNaturalSpawningAllowed
-
isNaturalSpawningAllowed
-
enabledFeatures
- Specified by:
enabledFeatures
in interfaceLevelReader
-
getRandomSequence
-
getRandomSequences
-
getPartEntities
Description copied from interface:ILevelExtension
All part entities in this world. Used when collecting entities in an AABB to fix parts being ignored whose parent entity is in a chunk that does not intersect with the AABB.- Specified by:
getPartEntities
in interfaceILevelExtension
-