类 Level
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.Level
- 所有已实现的接口:
AutoCloseable
,BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,UUIDLookup<Entity>
,EntityGetter
,LevelAccessor
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,ScheduledTickAccess
,SignalGetter
,IAttachmentHolder
,IBlockAndTintGetterExtension
,IBlockGetterExtension
,ILevelExtension
,ILevelReaderExtension
- 直接已知子类:
ServerLevel
public abstract class Level
extends AttachmentHolder
implements LevelAccessor, UUIDLookup<Entity>, AutoCloseable, ILevelExtension
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
字段概要
字段修饰符和类型字段说明protected final int
private final BiomeManager
protected final List
<TickingBlockEntity> boolean
private final DamageSources
private final ResourceKey
<Level> private final Holder
<DimensionType> static final ResourceKey
<Level> private final ArrayList
<BlockEntity> final boolean
private final boolean
protected final WritableLevelData
static final int
static final int
static final int
static final int
private double
static final int
private static final Direction[]
protected final NeighborUpdater
static final ResourceKey
<Level> float
float
static final ResourceKey
<Level> private final List
<TickingBlockEntity> private final ArrayList
<BlockEntity> float
final RandomSource
protected int
private final RegistryAccess
static final com.mojang.serialization.Codec
<ResourceKey<Level>> boolean
static final int
private int
private long
private final Thread
private final RandomSource
已过时。float
private boolean
static final int
private final WorldBorder
从类继承的字段 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
-
构造器概要
构造器限定符构造器说明protected
Level
(WritableLevelData p_270739_, ResourceKey<Level> p_270683_, RegistryAccess p_270200_, Holder<DimensionType> p_270240_, boolean p_270904_, boolean p_270470_, long p_270248_, int p_270466_) -
方法概要
修饰符和类型方法说明void
addAlwaysVisibleParticle
(ParticleOptions p_46691_, boolean p_46692_, double p_46693_, double p_46694_, double p_46695_, double p_46696_, double p_46697_, double p_46698_) void
addAlwaysVisibleParticle
(ParticleOptions p_46684_, double p_46685_, double p_46686_, double p_46687_, double p_46688_, double p_46689_, double p_46690_) void
addBlockEntityTicker
(TickingBlockEntity p_151526_) void
addDestroyBlockEffect
(BlockPos p_151531_, BlockState p_151532_) void
addFreshBlockEntities
(Collection<BlockEntity> beList) void
addParticle
(ParticleOptions p_46638_, boolean p_46639_, boolean p_382799_, double p_46640_, double p_46641_, double p_46642_, double p_46643_, double p_46644_, double p_46645_) void
addParticle
(ParticleOptions p_46631_, double p_46632_, double p_46633_, double p_46634_, double p_46635_, double p_46636_, double p_46637_) protected long
void
blockEntityChanged
(BlockPos p_151544_) void
blockEvent
(BlockPos p_46582_, Block p_46583_, int p_46584_, int p_46585_) void
broadcastDamageEvent
(Entity p_270831_, DamageSource p_270361_) void
broadcastEntityEvent
(Entity p_46509_, byte p_46510_) private boolean
void
close()
void
createFireworks
(double p_46475_, double p_46476_, double p_46477_, double p_46478_, double p_46479_, double p_46480_, List<FireworkExplosion> p_332050_) boolean
destroyBlock
(BlockPos p_46626_, boolean p_46627_, Entity p_46628_, int p_46629_) abstract void
destroyBlockProgress
(int p_46506_, BlockPos p_46507_, int p_46508_) abstract Collection
<PartEntity<?>> void
explode
(Entity p_255682_, double p_255803_, double p_256403_, double p_256538_, float p_255674_, boolean p_256634_, Level.ExplosionInteraction p_256111_) void
explode
(Entity p_256145_, double p_256208_, double p_256036_, double p_255746_, float p_256647_, Level.ExplosionInteraction p_256104_) void
explode
(Entity p_311934_, DamageSource p_312790_, ExplosionDamageCalculator p_311975_, double p_312493_, double p_312456_, double p_312719_, float p_312292_, boolean p_312144_, Level.ExplosionInteraction p_312265_) abstract void
explode
(Entity p_255653_, DamageSource p_256558_, ExplosionDamageCalculator p_255929_, double p_365323_, double p_362972_, double p_364015_, float p_255963_, boolean p_256099_, Level.ExplosionInteraction p_256371_, ParticleOptions p_364907_, ParticleOptions p_360946_, Holder<SoundEvent> p_363757_) void
explode
(Entity p_256233_, DamageSource p_255861_, ExplosionDamageCalculator p_255867_, Vec3 p_361166_, float p_256013_, boolean p_256228_, Level.ExplosionInteraction p_255784_) fillReportDetails
(CrashReport p_46656_) abstract FuelValues
abstract String
getBlockEntity
(BlockPos p_46716_) getBlockRandomPos
(int p_46497_, int p_46498_, int p_46499_, int p_46500_) getBlockState
(BlockPos p_46732_) getChunk
(int p_46727_, int p_46728_) getChunk
(int p_46502_, int p_46503_, ChunkStatus p_331611_, boolean p_46505_) getChunkAt
(BlockPos p_46746_) getChunkForCollisions
(int p_46711_, int p_46712_) int
getClientLeafTintColor
(BlockPos p_400079_) getCurrentDifficultyAt
(BlockPos p_46730_) long
abstract float
abstract float
Returns the current ratio between game ticks and clock ticks.protected abstract LevelEntityGetter
<Entity> getEntities
(Entity p_46536_, AABB p_46537_, Predicate<? super Entity> p_46538_) getEntities
(EntityTypeTest<Entity, T> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) <T extends Entity>
voidgetEntities
(EntityTypeTest<Entity, T> p_261899_, AABB p_261837_, Predicate<? super T> p_261519_, List<? super T> p_262046_) <T extends Entity>
voidgetEntities
(EntityTypeTest<Entity, T> p_261885_, AABB p_262086_, Predicate<? super T> p_261688_, List<? super T> p_262071_, int p_261858_) abstract Entity
getEntity
(int p_46492_) getFluidState
(BlockPos p_46671_) long
int
getHeight
(Heightmap.Types p_46571_, int p_46572_, int p_46573_) abstract MapItemSavedData
getMapData
(MapId p_324234_) double
The maximum radius to scan for entities when trying to check bounding boxes.getPushableEntities
(Entity p_394578_, AABB p_394614_) float
getRainLevel
(float p_46723_) abstract Scoreboard
float
int
float
getSunAngle
(float p_46491_) float
getThunderLevel
(float p_46662_) void
globalLevelEvent
(int p_46665_, BlockPos p_46666_, int p_46667_) <T extends Entity>
voidguardEntityTick
(Consumer<T> p_46654_, T p_46655_) double
increaseMaxEntityRadius
(double value) Increases the max entity radius, this is safe to call with any value.boolean
boolean
boolean
final boolean
isDebug()
boolean
isFluidAtPosition
(BlockPos p_151541_, Predicate<FluidState> p_151542_) static boolean
isInSpawnableBounds
(BlockPos p_46742_) boolean
isInWorldBounds
(BlockPos p_46740_) private static boolean
isInWorldBoundsHorizontal
(BlockPos p_46458_) boolean
boolean
private static boolean
isOutsideSpawnableHeight
(int p_46725_) boolean
boolean
isRainingAt
(BlockPos p_46759_) boolean
isStateAtPosition
(BlockPos p_46620_, Predicate<BlockState> p_46621_) boolean
boolean
loadedAndEntityCanStandOn
(BlockPos p_46576_, Entity p_46577_) boolean
loadedAndEntityCanStandOnFace
(BlockPos p_46579_, Entity p_46580_, Direction p_46581_) void
markAndNotifyBlock
(BlockPos p_46605_, LevelChunk levelchunk, BlockState blockstate, BlockState p_46606_, int p_46607_, int p_46608_) boolean
mayInteract
(Entity p_393625_, BlockPos p_46558_) void
neighborChanged
(BlockPos p_220380_, Block p_220381_, Orientation p_361509_) void
neighborChanged
(BlockState p_361138_, BlockPos p_46587_, Block p_46588_, Orientation p_362276_, boolean p_361335_) void
neighborShapeChanged
(Direction p_220385_, BlockPos p_220387_, BlockPos p_220388_, BlockState p_220386_, int p_220389_, int p_220390_) long
boolean
noSave()
void
onBlockEntityAdded
(BlockEntity p_427392_) void
playLocalSound
(double p_46482_, double p_46483_, double p_46484_, SoundEvent p_46485_, SoundSource p_46486_, float p_46487_, float p_46488_, boolean p_46489_) void
playLocalSound
(BlockPos p_250938_, SoundEvent p_252209_, SoundSource p_249161_, float p_249980_, float p_250277_, boolean p_250151_) void
playLocalSound
(Entity p_312189_, SoundEvent p_312080_, SoundSource p_312905_, float p_312914_, float p_312831_) void
playPlayerSound
(SoundEvent p_401325_, SoundSource p_401393_, float p_401219_, float p_401183_) abstract void
playSeededSound
(Entity p_394382_, double p_220364_, double p_220365_, double p_220366_, Holder<SoundEvent> p_394088_, SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) void
playSeededSound
(Entity p_220373_, double p_393694_, double p_394310_, double p_393691_, SoundEvent p_394542_, SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) abstract void
playSeededSound
(Entity p_394455_, Entity p_393481_, Holder<SoundEvent> p_263359_, SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_) void
playSound
(Entity p_393791_, double p_394457_, double p_393667_, double p_393838_, Holder<SoundEvent> p_394598_, SoundSource p_46563_, float p_46564_, float p_46565_) void
playSound
(Entity p_393558_, double p_46544_, double p_46545_, double p_46546_, SoundEvent p_46547_, SoundSource p_46548_) void
playSound
(Entity p_394547_, double p_308925_, double p_309072_, double p_308916_, SoundEvent p_308917_, SoundSource p_308902_, float p_394219_, float p_394345_) void
playSound
(Entity p_252137_, BlockPos p_251749_, SoundEvent p_248842_, SoundSource p_251104_, float p_249531_, float p_250763_) void
playSound
(Entity p_394000_, Entity p_393603_, SoundEvent p_393830_, SoundSource p_347522_, float p_347447_, float p_347667_) abstract PotionBrewing
precipitationAt
(BlockPos p_415828_) protected void
abstract RecipeAccess
boolean
removeBlock
(BlockPos p_46623_, boolean p_46624_) void
removeBlockEntity
(BlockPos p_46748_) abstract void
sendBlockUpdated
(BlockPos p_46612_, BlockState p_46613_, BlockState p_46614_, int p_46615_) void
sendPacketToServer
(Packet<?> p_46657_) boolean
setBlock
(BlockPos p_46601_, BlockState p_46602_, int p_46603_) boolean
setBlock
(BlockPos p_46605_, BlockState p_46606_, int p_46607_, int p_46608_) boolean
setBlockAndUpdate
(BlockPos p_46598_, BlockState p_46599_) void
setBlockEntity
(BlockEntity p_151524_) void
setBlocksDirty
(BlockPos p_46678_, BlockState p_46679_, BlockState p_46680_) abstract void
setDayTimeFraction
(float dayTimeFraction) abstract void
setDayTimePerTick
(float dayTimePerTick) DO NOT CALL.void
setRainLevel
(float p_46735_) void
setSkyFlashTime
(int p_46709_) void
setSpawnSettings
(boolean p_46704_) void
setThunderLevel
(float p_46708_) boolean
shouldTickBlocksAt
(long p_186456_) boolean
shouldTickBlocksAt
(BlockPos p_220394_) boolean
shouldTickDeath
(Entity p_186458_) protected void
abstract TickRateManager
void
updateNeighborsAt
(BlockPos p_365514_, Block p_364886_, Orientation p_363337_) void
updateNeighborsAtExceptFromFacing
(BlockPos p_46591_, Block p_46592_, Direction p_46593_, Orientation p_362952_) void
updateNeighbourForOutputSignal
(BlockPos p_46718_, Block p_46719_) void
updatePOIOnBlockStateChange
(BlockPos p_394475_, BlockState p_393580_, BlockState p_393789_) void
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setData
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightness, getShade
从接口继承的方法 net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLine
从接口继承的方法 net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getPreMoveCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
从接口继承的方法 net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
从接口继承的方法 net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players
从接口继承的方法 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, invalidateCapabilities, invalidateCapabilities
从接口继承的方法 net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoaded
从接口继承的方法 net.minecraft.world.level.LevelAccessor
createTick, createTick, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, gameEvent, getChunkSource, getDifficulty, hasChunk, levelEvent, levelEvent, playSound, updateNeighborsAt
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
从接口继承的方法 net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, enabledFeatures, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAt
从接口继承的方法 net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
从接口继承的方法 net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
从接口继承的方法 net.minecraft.world.level.ScheduledTickAccess
getBlockTicks, getFluidTicks, scheduleTick, scheduleTick, scheduleTick, scheduleTick
从接口继承的方法 net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
字段详细资料
-
RESOURCE_KEY_CODEC
-
OVERWORLD
-
NETHER
-
END
-
MAX_LEVEL_SIZE
public static final int MAX_LEVEL_SIZE- 另请参阅:
-
LONG_PARTICLE_CLIP_RANGE
public static final int LONG_PARTICLE_CLIP_RANGE- 另请参阅:
-
SHORT_PARTICLE_CLIP_RANGE
public static final int SHORT_PARTICLE_CLIP_RANGE- 另请参阅:
-
MAX_BRIGHTNESS
public static final int MAX_BRIGHTNESS- 另请参阅:
-
TICKS_PER_DAY
public static final int TICKS_PER_DAY- 另请参阅:
-
MAX_ENTITY_SPAWN_Y
public static final int MAX_ENTITY_SPAWN_Y- 另请参阅:
-
MIN_ENTITY_SPAWN_Y
public static final int MIN_ENTITY_SPAWN_Y- 另请参阅:
-
blockEntityTickers
-
neighborUpdater
-
pendingBlockEntityTickers
-
tickingBlockEntities
private boolean tickingBlockEntities -
thread
-
isDebug
private final boolean isDebug -
skyDarken
private int skyDarken -
randValue
protected int randValue -
addend
protected final int addend- 另请参阅:
-
oRainLevel
public float oRainLevel -
rainLevel
public float rainLevel -
oThunderLevel
public float oThunderLevel -
thunderLevel
public float thunderLevel -
random
-
threadSafeRandom
已过时。 -
dimensionTypeRegistration
-
levelData
-
isClientSide
public final boolean isClientSide -
worldBorder
-
biomeManager
-
dimension
-
registryAccess
-
damageSources
-
subTickCount
private long subTickCount -
restoringBlockSnapshots
public boolean restoringBlockSnapshots -
captureBlockSnapshots
public boolean captureBlockSnapshots -
capturedBlockSnapshots
-
freshBlockEntities
-
pendingFreshBlockEntities
-
NEIGHBOR_UPDATE_LIST
-
maxEntityRadius
private double maxEntityRadius
-
-
构造器详细资料
-
Level
protected Level(WritableLevelData p_270739_, ResourceKey<Level> p_270683_, RegistryAccess p_270200_, Holder<DimensionType> p_270240_, boolean p_270904_, boolean p_270470_, long p_270248_, int p_270466_)
-
-
方法详细资料
-
isClientSide
public boolean isClientSide()- 指定者:
isClientSide
在接口中LevelReader
-
getServer
- 指定者:
getServer
在接口中LevelAccessor
-
isInWorldBounds
-
isInSpawnableBounds
-
isInWorldBoundsHorizontal
-
isOutsideSpawnableHeight
private static boolean isOutsideSpawnableHeight(int p_46725_) -
getChunkAt
-
getChunk
- 指定者:
getChunk
在接口中LevelReader
-
getChunk
@Nullable public ChunkAccess getChunk(int p_46502_, int p_46503_, ChunkStatus p_331611_, boolean p_46505_) - 指定者:
getChunk
在接口中LevelReader
-
setBlock
- 指定者:
setBlock
在接口中LevelWriter
-
setBlock
- 指定者:
setBlock
在接口中LevelWriter
-
markAndNotifyBlock
public void markAndNotifyBlock(BlockPos p_46605_, @Nullable LevelChunk levelchunk, BlockState blockstate, BlockState p_46606_, int p_46607_, int p_46608_) -
updatePOIOnBlockStateChange
public void updatePOIOnBlockStateChange(BlockPos p_394475_, BlockState p_393580_, BlockState p_393789_) -
removeBlock
- 指定者:
removeBlock
在接口中LevelWriter
-
destroyBlock
public boolean destroyBlock(BlockPos p_46626_, boolean p_46627_, @Nullable Entity p_46628_, int p_46629_) - 指定者:
destroyBlock
在接口中LevelWriter
-
addDestroyBlockEffect
-
setBlockAndUpdate
-
sendBlockUpdated
public abstract void sendBlockUpdated(BlockPos p_46612_, BlockState p_46613_, BlockState p_46614_, int p_46615_) -
setBlocksDirty
-
updateNeighborsAt
-
updateNeighborsAtExceptFromFacing
public void updateNeighborsAtExceptFromFacing(BlockPos p_46591_, Block p_46592_, Direction p_46593_, @Nullable Orientation p_362952_) -
neighborChanged
-
neighborChanged
public void neighborChanged(BlockState p_361138_, BlockPos p_46587_, Block p_46588_, @Nullable Orientation p_362276_, boolean p_361335_) -
neighborShapeChanged
public void neighborShapeChanged(Direction p_220385_, BlockPos p_220387_, BlockPos p_220388_, BlockState p_220386_, int p_220389_, int p_220390_) - 指定者:
neighborShapeChanged
在接口中LevelAccessor
-
getHeight
- 指定者:
getHeight
在接口中LevelReader
-
getLightEngine
- 指定者:
getLightEngine
在接口中BlockAndTintGetter
-
getBlockState
- 指定者:
getBlockState
在接口中BlockGetter
-
getFluidState
- 指定者:
getFluidState
在接口中BlockGetter
-
isBrightOutside
public boolean isBrightOutside() -
isDarkOutside
public boolean isDarkOutside() -
isMoonVisible
public boolean isMoonVisible() -
playSound
public void playSound(@Nullable Entity p_252137_, BlockPos p_251749_, SoundEvent p_248842_, SoundSource p_251104_, float p_249531_, float p_250763_) - 指定者:
playSound
在接口中LevelAccessor
-
playSeededSound
public abstract void playSeededSound(@Nullable Entity p_394382_, double p_220364_, double p_220365_, double p_220366_, Holder<SoundEvent> p_394088_, SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) -
playSeededSound
public void playSeededSound(@Nullable Entity p_220373_, double p_393694_, double p_394310_, double p_393691_, SoundEvent p_394542_, SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) -
playSeededSound
public abstract void playSeededSound(@Nullable Entity p_394455_, Entity p_393481_, Holder<SoundEvent> p_263359_, SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_) -
playSound
public void playSound(@Nullable Entity p_393558_, double p_46544_, double p_46545_, double p_46546_, SoundEvent p_46547_, SoundSource p_46548_) -
playSound
public void playSound(@Nullable Entity p_394547_, double p_308925_, double p_309072_, double p_308916_, SoundEvent p_308917_, SoundSource p_308902_, float p_394219_, float p_394345_) -
playSound
public void playSound(@Nullable Entity p_393791_, double p_394457_, double p_393667_, double p_393838_, Holder<SoundEvent> p_394598_, SoundSource p_46563_, float p_46564_, float p_46565_) -
playSound
public void playSound(@Nullable Entity p_394000_, Entity p_393603_, SoundEvent p_393830_, SoundSource p_347522_, float p_347447_, float p_347667_) -
playLocalSound
public void playLocalSound(BlockPos p_250938_, SoundEvent p_252209_, SoundSource p_249161_, float p_249980_, float p_250277_, boolean p_250151_) -
playLocalSound
public void playLocalSound(Entity p_312189_, SoundEvent p_312080_, SoundSource p_312905_, float p_312914_, float p_312831_) -
playLocalSound
public void playLocalSound(double p_46482_, double p_46483_, double p_46484_, SoundEvent p_46485_, SoundSource p_46486_, float p_46487_, float p_46488_, boolean p_46489_) -
playPlayerSound
public void playPlayerSound(SoundEvent p_401325_, SoundSource p_401393_, float p_401219_, float p_401183_) -
addParticle
public void addParticle(ParticleOptions p_46631_, double p_46632_, double p_46633_, double p_46634_, double p_46635_, double p_46636_, double p_46637_) - 指定者:
addParticle
在接口中LevelAccessor
-
addParticle
public void addParticle(ParticleOptions p_46638_, boolean p_46639_, boolean p_382799_, double p_46640_, double p_46641_, double p_46642_, double p_46643_, double p_46644_, double p_46645_) -
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions p_46684_, double p_46685_, double p_46686_, double p_46687_, double p_46688_, double p_46689_, double p_46690_) -
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions p_46691_, boolean p_46692_, double p_46693_, double p_46694_, double p_46695_, double p_46696_, double p_46697_, double p_46698_) -
getSunAngle
public float getSunAngle(float p_46491_) -
addBlockEntityTicker
-
addFreshBlockEntities
-
tickBlockEntities
protected void tickBlockEntities() -
guardEntityTick
-
shouldTickDeath
-
shouldTickBlocksAt
public boolean shouldTickBlocksAt(long p_186456_) -
shouldTickBlocksAt
-
explode
public void explode(@Nullable Entity p_256145_, double p_256208_, double p_256036_, double p_255746_, float p_256647_, Level.ExplosionInteraction p_256104_) -
explode
public void explode(@Nullable Entity p_255682_, double p_255803_, double p_256403_, double p_256538_, float p_255674_, boolean p_256634_, Level.ExplosionInteraction p_256111_) -
explode
public void explode(@Nullable Entity p_256233_, @Nullable DamageSource p_255861_, @Nullable ExplosionDamageCalculator p_255867_, Vec3 p_361166_, float p_256013_, boolean p_256228_, Level.ExplosionInteraction p_255784_) -
explode
public void explode(@Nullable Entity p_311934_, @Nullable DamageSource p_312790_, @Nullable ExplosionDamageCalculator p_311975_, double p_312493_, double p_312456_, double p_312719_, float p_312292_, boolean p_312144_, Level.ExplosionInteraction p_312265_) -
explode
public abstract void explode(@Nullable Entity p_255653_, @Nullable DamageSource p_256558_, @Nullable ExplosionDamageCalculator p_255929_, double p_365323_, double p_362972_, double p_364015_, float p_255963_, boolean p_256099_, Level.ExplosionInteraction p_256371_, ParticleOptions p_364907_, ParticleOptions p_360946_, Holder<SoundEvent> p_363757_) -
gatherChunkSourceStats
-
getBlockEntity
- 指定者:
getBlockEntity
在接口中BlockGetter
-
setBlockEntity
-
removeBlockEntity
-
isLoaded
-
loadedAndEntityCanStandOnFace
-
loadedAndEntityCanStandOn
-
updateSkyBrightness
public void updateSkyBrightness() -
setSpawnSettings
public void setSpawnSettings(boolean p_46704_) -
prepareWeather
protected void prepareWeather() -
close
- 指定者:
close
在接口中AutoCloseable
- 抛出:
IOException
-
getChunkForCollisions
- 指定者:
getChunkForCollisions
在接口中CollisionGetter
- 指定者:
getChunkForCollisions
在接口中LevelReader
-
getEntities
public List<Entity> getEntities(@Nullable Entity p_46536_, AABB p_46537_, Predicate<? super Entity> p_46538_) - 指定者:
getEntities
在接口中EntityGetter
-
getEntities
public <T extends Entity> List<T> getEntities(EntityTypeTest<Entity, T> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) - 指定者:
getEntities
在接口中EntityGetter
-
getEntities
-
getEntities
-
getPushableEntities
-
getEntity
-
getEntity
- 指定者:
getEntity
在接口中UUIDLookup<Entity>
-
dragonParts
-
blockEntityChanged
-
onBlockEntityAdded
-
getGameTime
public long getGameTime() -
getDayTime
public long getDayTime() -
mayInteract
-
broadcastEntityEvent
-
broadcastDamageEvent
-
blockEvent
-
getLevelData
- 指定者:
getLevelData
在接口中LevelAccessor
-
tickRateManager
-
getThunderLevel
public float getThunderLevel(float p_46662_) -
setThunderLevel
public void setThunderLevel(float p_46708_) -
getRainLevel
public float getRainLevel(float p_46723_) -
setRainLevel
public void setRainLevel(float p_46735_) -
canHaveWeather
private boolean canHaveWeather() -
isThundering
public boolean isThundering() -
isRaining
public boolean isRaining() -
isRainingAt
-
precipitationAt
-
getMapData
-
globalLevelEvent
-
fillReportDetails
-
destroyBlockProgress
-
createFireworks
public void createFireworks(double p_46475_, double p_46476_, double p_46477_, double p_46478_, double p_46479_, double p_46480_, List<FireworkExplosion> p_332050_) -
getScoreboard
-
updateNeighbourForOutputSignal
-
getCurrentDifficultyAt
- 指定者:
getCurrentDifficultyAt
在接口中LevelAccessor
-
getSkyDarken
public int getSkyDarken()- 指定者:
getSkyDarken
在接口中LevelReader
-
setSkyFlashTime
public void setSkyFlashTime(int p_46709_) -
getWorldBorder
- 指定者:
getWorldBorder
在接口中CollisionGetter
-
sendPacketToServer
-
dimensionType
- 指定者:
dimensionType
在接口中LevelReader
-
dimensionTypeRegistration
-
dimension
-
getRandom
- 指定者:
getRandom
在接口中LevelAccessor
-
isStateAtPosition
- 指定者:
isStateAtPosition
在接口中LevelSimulatedReader
-
isFluidAtPosition
- 指定者:
isFluidAtPosition
在接口中LevelSimulatedReader
-
recipeAccess
-
getBlockRandomPos
-
noSave
public boolean noSave() -
getBiomeManager
- 指定者:
getBiomeManager
在接口中LevelReader
-
getMaxEntityRadius
public double getMaxEntityRadius()从接口复制的说明:ILevelExtension
The maximum radius to scan for entities when trying to check bounding boxes. Vanilla's default is 2.0D But mods that add larger entities may increase this.- 指定者:
getMaxEntityRadius
在接口中ILevelExtension
-
increaseMaxEntityRadius
public double increaseMaxEntityRadius(double value) 从接口复制的说明:ILevelExtension
Increases the max entity radius, this is safe to call with any value. The setter will verify the input value is larger then the current setting.- 指定者:
increaseMaxEntityRadius
在接口中ILevelExtension
- 参数:
value
- New max radius to set.- 返回:
- The new max radius
-
isDebug
public final boolean isDebug() -
getEntities
-
nextSubTickCount
public long nextSubTickCount()- 指定者:
nextSubTickCount
在接口中LevelAccessor
-
registryAccess
- 指定者:
registryAccess
在接口中LevelReader
-
damageSources
-
potionBrewing
-
fuelValues
-
getClientLeafTintColor
-
setDayTimeFraction
@Internal public abstract void setDayTimeFraction(float dayTimeFraction) -
getDayTimeFraction
@Internal public abstract float getDayTimeFraction() -
getDayTimePerTick
public abstract 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). -
setDayTimePerTick
public abstract void setDayTimePerTick(float dayTimePerTick) DO NOT CALL.Use
ServerLevel.setDayTimePerTick(float)
instead. -
advanceDaytime
@Internal protected long advanceDaytime()
-