类 ServerLevel
- 所有已实现的接口:
AutoCloseable
,ServerEntityGetter
,BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,UUIDLookup<Entity>
,EntityGetter
,LevelAccessor
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,ScheduledTickAccess
,ServerLevelAccessor
,SignalGetter
,WorldGenLevel
,IAttachmentHolder
,IBlockAndTintGetterExtension
,IBlockGetterExtension
,ILevelExtension
,ILevelReaderExtension
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.level.Level
Level.ExplosionInteraction
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
字段概要
字段修饰符和类型字段说明private final it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet
<BlockEventData> private final List
<BlockEventData> private final LevelTicks
<Block> private final CapabilityListenerHolder
private final ServerChunkCache
private final List
<CustomSpawner> private EndDragonFight
(专用程序包) final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<PartEntity<?>> private static final int
private int
static final BlockPos
private final PersistentEntitySectionManager
<Entity> (专用程序包) final EntityTickList
private final LevelTicks
<Fluid> private final GameEventDispatcher
private boolean
(专用程序包) boolean
private int
private static final org.slf4j.Logger
private static final int
boolean
private final PathTypeCache
(专用程序包) 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
private final ServerWaypointManager
从类继承的字段 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
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
从接口继承的字段 net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
从接口继承的字段 net.neoforged.neoforge.common.extensions.ILevelExtension
TRANSLATION_PREFIX
从接口继承的字段 net.minecraft.world.level.SignalGetter
DIRECTIONS
-
构造器概要
构造器构造器说明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_, RandomSequences p_288977_) -
方法概要
修饰符和类型方法说明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
anyPlayerCloseEnoughForSpawning
(BlockPos p_401859_) boolean
anyPlayerCloseEnoughForSpawning
(ChunkPos p_401797_) boolean
areEntitiesActuallyLoadedAndTicking
(ChunkPos p_411044_) boolean
areEntitiesLoaded
(long p_143320_) void
blockEvent
(BlockPos p_8746_, Block p_8747_, int p_8748_, int p_8749_) void
broadcastDamageEvent
(Entity p_270420_, DamageSource p_270311_) void
broadcastEntityEvent
(Entity p_8650_, byte p_8651_) boolean
boolean
canSpawnEntitiesInChunk
(ChunkPos p_401897_) void
Internal method, used to clean capability listeners that are not referenced.void
clearBlockEvents
(BoundingBox p_8723_) void
close()
void
destroyBlockProgress
(int p_8612_, BlockPos p_8613_, int p_8614_) private boolean
doBlockEvent
(BlockEventData p_8699_) Collection
<PartEntity<?>> private void
dumpBlockEntityTickers
(Writer p_143300_) private static void
dumpEntities
(Writer p_8782_, Iterable<Entity> p_8783_) void
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_, ParticleOptions p_312436_, ParticleOptions p_312391_, Holder<SoundEvent> p_320497_) fillReportDetails
(CrashReport p_307518_) 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
(Holder<GameEvent> p_316597_, Vec3 p_215042_, GameEvent.Context p_215043_) float
float
Returns the current ratio between game ticks and clock ticks.private Explosion.BlockInteraction
getDestroyType
(GameRules.Key<GameRules.BooleanValue> p_361991_) 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_) 已过时。it.unimi.dsi.fastutil.longs.LongSet
getLevel()
int
getMapData
(MapId p_323746_) getPlayers
(Predicate<? super ServerPlayer> p_8796_) getPlayers
(Predicate<? super ServerPlayer> p_261698_, int p_262035_) getRaids()
getRandomSequence
(ResourceLocation p_287689_) int
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_) void
Notify all listeners that the capabilities at a specific position might have changed.void
Notify all listeners that the capabilities at all the positions in a chunk might have changed.boolean
isCloseToVillage
(BlockPos p_8737_, int p_8738_) boolean
isFlat()
boolean
boolean
isPositionEntityTicking
(BlockPos p_143341_) boolean
isPositionTickingWithEntitiesLoaded
(long p_184111_) boolean
boolean
boolean
isVillage
(SectionPos p_8763_) void
levelEvent
(Entity p_393790_, int p_8685_, BlockPos p_8686_, int p_8687_) boolean
mayInteract
(Entity p_393624_, BlockPos p_8697_) void
neighborChanged
(BlockPos p_215036_, Block p_215037_, Orientation p_363242_) void
neighborChanged
(BlockState p_362490_, BlockPos p_215048_, Block p_215049_, Orientation p_363197_, boolean p_365415_) boolean
noSave()
void
onReputationEvent
(ReputationEventType p_8671_, Entity p_8672_, ReputationEventHandler p_8673_) void
onStructureStartsAvailable
(ChunkAccess p_196558_) players()
void
playSeededSound
(Entity p_393855_, 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
(Entity p_263544_, Entity p_394316_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) void
registerCapabilityListener
(BlockPos pos, ICapabilityInvalidationListener listener) Register a listener for capability invalidation.void
removePlayerImmediately
(ServerPlayer p_143262_, Entity.RemovalReason p_143263_) void
void
private void
void
save
(ProgressListener p_8644_, boolean p_8645_, boolean p_8646_) void
saveDebugReport
(Path p_8787_) private void
saveLevelData
(boolean p_364073_) 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_, boolean p_382903_, 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_383163_, boolean p_382791_, boolean p_383241_, double p_382894_, double p_383049_, double p_382861_, int p_382789_, double p_382818_, double p_382875_, double p_383002_, double p_383103_) <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
setDayTimeFraction
(float dayTimeFraction) void
setDayTimePerTick
(float dayTimePerTick) This allows mods to set the rate time flows in a level.void
setDefaultSpawnPos
(BlockPos p_8734_, float p_8735_) void
setDragonFight
(EndDragonFight p_287779_) 已过时。void
setMapData
(MapId p_323697_, MapItemSavedData p_143306_) void
setWeatherParameters
(int p_8607_, int p_8608_, boolean p_8609_, boolean p_8610_) 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
void
tickNonPassenger
(Entity p_8648_) private void
tickPassenger
(Entity p_8663_, Entity p_8664_) void
tickPrecipitation
(BlockPos p_295060_) void
tickThunder
(LevelChunk p_401824_) protected void
tickTime()
toString()
boolean
tryAddFreshEntityWithPassengers
(Entity p_8861_) void
unload
(LevelChunk p_8713_) void
updateNeighborsAt
(BlockPos p_215045_, Block p_215046_) void
updateNeighborsAt
(BlockPos p_363893_, Block p_362383_, Orientation p_364696_) void
updateNeighborsAtExceptFromFacing
(BlockPos p_215052_, Block p_215053_, Direction p_215054_, Orientation p_365231_) void
updateNeighboursOnBlockSet
(BlockPos p_416264_, BlockState p_415605_) void
updatePOIOnBlockStateChange
(BlockPos p_8751_, BlockState p_8752_, BlockState p_8753_) void
void
waitForChunkAndEntities
(ChunkPos p_428539_, int p_428284_) private void
从类继承的方法 net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, addParticle, advanceDaytime, blockEntityChanged, createFireworks, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getClientLeafTintColor, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getEntity, getFluidState, getGameTime, getHeight, getLevelData, getLightEngine, getMaxEntityRadius, getPushableEntities, getRainLevel, getRandom, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, increaseMaxEntityRadius, isBrightOutside, isClientSide, isDarkOutside, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isMoonVisible, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, neighborShapeChanged, nextSubTickCount, onBlockEntityAdded, playLocalSound, playLocalSound, playLocalSound, playPlayerSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, precipitationAt, prepareWeather, registryAccess, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighbourForOutputSignal, updateSkyBrightness
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setData
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness
从接口继承的方法 net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLine
从接口继承的方法 net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
从接口继承的方法 net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
从接口继承的方法 net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShade
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
从接口继承的方法 net.neoforged.neoforge.common.extensions.ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, getModelDataManager
从接口继承的方法 net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoaded
从接口继承的方法 net.minecraft.world.level.LevelAccessor
addParticle, createTick, createTick, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, hasChunk, levelEvent, neighborShapeChanged, nextSubTickCount, playSound, playSound
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
从接口继承的方法 net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getHeight, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, getSkyDarken, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccess
从接口继承的方法 net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPosition
从接口继承的方法 net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
从接口继承的方法 net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
从接口继承的方法 net.minecraft.world.level.ScheduledTickAccess
scheduleTick, scheduleTick, scheduleTick, scheduleTick
从接口继承的方法 net.minecraft.server.level.ServerEntityGetter
getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer
从接口继承的方法 net.minecraft.world.level.ServerLevelAccessor
addFreshEntityWithPassengers
从接口继承的方法 net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
从接口继承的方法 net.minecraft.world.level.WorldGenLevel
ensureCanWrite, setCurrentlyGenerating
-
字段详细资料
-
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- 另请参阅:
-
MAX_SCHEDULED_TICKS_PER_TICK
private static final int MAX_SCHEDULED_TICKS_PER_TICK- 另请参阅:
-
players
-
chunkSource
-
server
-
serverLevelData
-
lastSpawnChunkRadius
private int lastSpawnChunkRadius -
entityTickList
-
waypointManager
-
entityManager
-
gameEventDispatcher
-
noSave
public boolean noSave -
sleepStatus
-
emptyTime
private int emptyTime -
portalForcer
-
blockTicks
-
fluidTicks
-
pathTypesByPosCache
-
raids
-
blockEvents
-
blockEventsToReschedule
-
handlingTick
private boolean handlingTick -
customSpawners
-
dragonFight
-
dragonParts
-
structureManager
-
structureCheck
-
tickTime
private final boolean tickTime -
randomSequences
-
capListenerHolder
-
-
构造器详细资料
-
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_)
-
-
方法详细资料
-
setDragonFight
已过时。 -
setWeatherParameters
public void setWeatherParameters(int p_8607_, int p_8608_, boolean p_8609_, boolean p_8610_) -
getUncachedNoiseBiome
- 指定者:
getUncachedNoiseBiome
在接口中LevelReader
-
structureManager
-
tick
-
shouldTickBlocksAt
public boolean shouldTickBlocksAt(long p_184059_) - 覆盖:
shouldTickBlocksAt
在类中Level
-
tickTime
protected void tickTime() -
setDayTime
public void setDayTime(long p_8616_) -
tickCustomSpawners
public void tickCustomSpawners(boolean p_8800_, boolean p_8801_) -
wakeUpAllPlayers
private void wakeUpAllPlayers() -
tickChunk
-
tickThunder
-
tickPrecipitation
-
findLightningRod
-
findLightningTargetAround
-
isHandlingTick
public boolean isHandlingTick() -
canSleepThroughNights
public boolean canSleepThroughNights() -
announceSleepStatus
private void announceSleepStatus() -
updateSleepingPlayerList
public void updateSleepingPlayerList() -
getScoreboard
- 指定者:
getScoreboard
在类中Level
-
getWaypointManager
-
advanceWeatherCycle
private void advanceWeatherCycle() -
resetWeatherCycle
public void resetWeatherCycle() -
resetEmptyTime
public void resetEmptyTime() -
tickFluid
-
tickBlock
-
tickNonPassenger
-
tickPassenger
-
updateNeighboursOnBlockSet
-
mayInteract
- 覆盖:
mayInteract
在类中Level
-
save
-
saveLevelData
private void saveLevelData(boolean p_364073_) -
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
- 指定者:
addFreshEntity
在接口中LevelWriter
-
addWithUUID
-
addDuringTeleport
-
addNewPlayer
-
addRespawnedPlayer
-
addPlayer
-
addEntity
-
tryAddFreshEntityWithPassengers
-
unload
-
removePlayerImmediately
-
destroyBlockProgress
- 指定者:
destroyBlockProgress
在类中Level
-
playSeededSound
public void playSeededSound(@Nullable Entity p_393855_, 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_) - 指定者:
playSeededSound
在类中Level
-
playSeededSound
public void playSeededSound(@Nullable Entity p_263544_, Entity p_394316_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) - 指定者:
playSeededSound
在类中Level
-
globalLevelEvent
- 覆盖:
globalLevelEvent
在类中Level
-
levelEvent
- 指定者:
levelEvent
在接口中LevelAccessor
-
getLogicalHeight
public int getLogicalHeight() -
gameEvent
- 指定者:
gameEvent
在接口中LevelAccessor
-
sendBlockUpdated
- 指定者:
sendBlockUpdated
在类中Level
-
updateNeighborsAt
- 指定者:
updateNeighborsAt
在接口中LevelAccessor
-
updateNeighborsAt
- 覆盖:
updateNeighborsAt
在类中Level
-
updateNeighborsAtExceptFromFacing
public void updateNeighborsAtExceptFromFacing(BlockPos p_215052_, Block p_215053_, Direction p_215054_, @Nullable Orientation p_365231_) -
neighborChanged
- 覆盖:
neighborChanged
在类中Level
-
neighborChanged
public void neighborChanged(BlockState p_362490_, BlockPos p_215048_, Block p_215049_, @Nullable Orientation p_363197_, boolean p_365415_) - 覆盖:
neighborChanged
在类中Level
-
broadcastEntityEvent
- 覆盖:
broadcastEntityEvent
在类中Level
-
broadcastDamageEvent
- 覆盖:
broadcastDamageEvent
在类中Level
-
getChunkSource
- 指定者:
getChunkSource
在接口中LevelAccessor
-
explode
public void 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_, ParticleOptions p_312436_, ParticleOptions p_312391_, Holder<SoundEvent> p_320497_) -
getDestroyType
-
blockEvent
- 覆盖:
blockEvent
在类中Level
-
runBlockEvents
private void runBlockEvents() -
doBlockEvent
-
getBlockTicks
- 指定者:
getBlockTicks
在接口中ScheduledTickAccess
-
getFluidTicks
- 指定者:
getFluidTicks
在接口中ScheduledTickAccess
-
getServer
- 指定者:
getServer
在接口中LevelAccessor
- 覆盖:
getServer
在类中Level
-
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> int sendParticles(T p_383163_, boolean p_382791_, boolean p_383241_, double p_382894_, double p_383049_, double p_382861_, int p_382789_, double p_382818_, double p_382875_, double p_383002_, double p_383103_) -
sendParticles
public <T extends ParticleOptions> boolean sendParticles(ServerPlayer p_8625_, T p_8626_, boolean p_8627_, boolean p_382903_, 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
已过时。 -
dragonParts
- 指定者:
dragonParts
在类中Level
-
findNearestMapStructure
-
findClosestBiome3d
-
recipeAccess
- 指定者:
recipeAccess
在类中Level
-
tickRateManager
- 指定者:
tickRateManager
在类中Level
-
noSave
public boolean noSave() -
getDataStorage
-
getMapData
- 指定者:
getMapData
在类中Level
-
setMapData
-
getFreeMapId
-
setDefaultSpawnPos
-
getForceLoadedChunks
public it.unimi.dsi.fastutil.longs.LongSet getForceLoadedChunks() -
setChunkForced
public boolean setChunkForced(int p_8603_, int p_8604_, boolean p_8605_) -
players
- 指定者:
players
在接口中EntityGetter
-
updatePOIOnBlockStateChange
- 覆盖:
updatePOIOnBlockStateChange
在类中Level
-
getPoiManager
-
isVillage
-
isVillage
-
isCloseToVillage
-
sectionsToVillage
-
getRaids
-
getRaidAt
-
isRaided
-
onReputationEvent
public void onReputationEvent(ReputationEventType p_8671_, Entity p_8672_, ReputationEventHandler p_8673_) -
saveDebugReport
- 抛出:
IOException
-
dumpEntities
- 抛出:
IOException
-
dumpBlockEntityTickers
- 抛出:
IOException
-
clearBlockEvents
-
getShade
- 指定者:
getShade
在接口中BlockAndTintGetter
-
getAllEntities
-
toString
-
isFlat
public boolean isFlat() -
getSeed
public long getSeed()- 指定者:
getSeed
在接口中WorldGenLevel
-
getDragonFight
-
getLevel
- 指定者:
getLevel
在接口中ServerEntityGetter
- 指定者:
getLevel
在接口中ServerLevelAccessor
-
getWatchdogStats
-
getTypeCount
-
getEntities
- 指定者:
getEntities
在类中Level
-
addLegacyChunkEntities
-
addWorldGenChunkEntities
-
startTickingChunk
-
onStructureStartsAvailable
-
getPathTypeCache
-
waitForChunkAndEntities
-
close
- 指定者:
close
在接口中AutoCloseable
- 覆盖:
close
在类中Level
- 抛出:
IOException
-
gatherChunkSourceStats
- 指定者:
gatherChunkSourceStats
在类中Level
-
areEntitiesLoaded
public boolean areEntitiesLoaded(long p_143320_) -
isPositionTickingWithEntitiesLoaded
public boolean isPositionTickingWithEntitiesLoaded(long p_184111_) -
isPositionEntityTicking
-
areEntitiesActuallyLoadedAndTicking
-
anyPlayerCloseEnoughForSpawning
-
anyPlayerCloseEnoughForSpawning
-
canSpawnEntitiesInChunk
-
enabledFeatures
- 指定者:
enabledFeatures
在接口中LevelReader
-
potionBrewing
- 指定者:
potionBrewing
在类中Level
-
fuelValues
- 指定者:
fuelValues
在类中Level
-
getRandomSequence
-
getRandomSequences
-
getGameRules
-
fillReportDetails
- 覆盖:
fillReportDetails
在类中Level
-
getSeaLevel
public int getSeaLevel()- 指定者:
getSeaLevel
在接口中LevelReader
-
invalidateCapabilities
从接口复制的说明:ILevelExtension
Notify all listeners that the capabilities at a specific position might have changed. This includes new capabilities becoming available.This method will only do something on
ServerLevel
s, but it is safe to call on anyLevel
, without the need for aninstanceof
check.If you already have a block entity at that position, you can call
IBlockEntityExtension.invalidateCapabilities()
instead.- 指定者:
invalidateCapabilities
在接口中ILevelExtension
-
invalidateCapabilities
从接口复制的说明:ILevelExtension
Notify all listeners that the capabilities at all the positions in a chunk might have changed. This includes new capabilities becoming available.This method will only do something on
ServerLevel
s, but it is safe to call on anyLevel
, without the need for aninstanceof
check.- 指定者:
invalidateCapabilities
在接口中ILevelExtension
-
registerCapabilityListener
Register a listener for capability invalidation.- 另请参阅:
-
cleanCapabilityListenerReferences
@Internal public void cleanCapabilityListenerReferences()Internal method, used to clean capability listeners that are not referenced. Do not call. -
setDayTimeFraction
@Internal public void setDayTimeFraction(float dayTimeFraction) - 指定者:
setDayTimeFraction
在类中Level
-
getDayTimeFraction
@Internal public float getDayTimeFraction()- 指定者:
getDayTimeFraction
在类中Level
-
getDayTimePerTick
public float getDayTimePerTick()Returns the current ratio between game ticks and clock ticks. If this value is negative, no speed has been set and those two are coupled 1:1 (i.e. vanilla mode).- 指定者:
getDayTimePerTick
在类中Level
-
setDayTimePerTick
public void setDayTimePerTick(float dayTimePerTick) This allows mods to set the rate time flows in a level. By default, each game tick the clock time also advances by one tick, withLevel.TICKS_PER_DAY
clock ticks (or 20 real-life minutes) forming a Minecraft day.This can be sped up for shorter days by giving a higher number, or slowed down for longer days with a smaller number. A negative value will reset it back to vanilla logic.
This value can also be changed with the command
/neoforge day
, where you can set either the speed or a day length in minutes.This has no effect when time progression is stopped.
While this still technically works when vanilla clients are connected, those will desync and experience a time jump once per second.
- 指定者:
setDayTimePerTick
在类中Level
-