类 Level
- 所有已实现的接口:
AutoCloseable
,BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,LevelAccessor
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,SignalGetter
,IForgeBlockAndTintGetter
,ICapabilityProvider
,ICapabilityProviderImpl<Level>
,IForgeBlockGetter
,IForgeLevel
- 直接已知子类:
ClientLevel
,ServerLevel
public abstract class Level
extends CapabilityProvider<Level>
implements LevelAccessor, AutoCloseable, IForgeLevel
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明protected final int
private final BiomeManager
protected final List<TickingBlockEntity>
boolean
private final DamageSources
private final ResourceKey<Level>
private final ResourceKey<DimensionType>
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
protected final NeighborUpdater
static final ResourceKey<Level>
float
float
static final ResourceKey<Level>
private final List<TickingBlockEntity>
private final ArrayList<BlockEntity>
private final Supplier<ProfilerFiller>
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.minecraft.world.level.SignalGetter
DIRECTIONS
-
构造器概要
构造器限定符构造器说明protected
Level
(WritableLevelData pLevelData, ResourceKey<Level> pDimension, RegistryAccess pRegistryAccess, Holder<DimensionType> pDimensionTypeRegistration, Supplier<ProfilerFiller> pProfiler, boolean pIsClientSide, boolean pIsDebug, long pBiomeZoomSeed, int pMaxChainedNeighborUpdates) -
方法概要
修饰符和类型方法说明void
addAlwaysVisibleParticle
(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addAlwaysVisibleParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addBlockEntityTicker
(TickingBlockEntity pTicker) void
addDestroyBlockEffect
(BlockPos pPos, BlockState pState) void
addFreshBlockEntities
(Collection<BlockEntity> beList) void
addParticle
(ParticleOptions pParticleData, boolean pForceAlwaysRender, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
blockEntityChanged
(BlockPos pPos) void
blockEvent
(BlockPos pPos, Block pBlock, int pEventID, int pEventParam) void
broadcastDamageEvent
(Entity pEntity, DamageSource pDamageSource) void
broadcastEntityEvent
(Entity pEntity, byte pState) void
close()
void
createFireworks
(double pX, double pY, double pZ, double pMotionX, double pMotionY, double pMotionZ, CompoundTag pCompound) boolean
destroyBlock
(BlockPos pPos, boolean pDropBlock, Entity pEntity, int pRecursionLeft) abstract void
destroyBlockProgress
(int pBreakerId, BlockPos pPos, int pProgress) void
explode
(Entity pSource, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) explode
(Entity pSource, double pX, double pY, double pZ, float pRadius, Level.ExplosionInteraction pExplosionInteraction) explode
(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) explode
(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, boolean pSpawnParticles) explode
(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, Vec3 pPos, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) fillReportDetails
(CrashReport pReport) abstract String
getBlockEntity
(BlockPos pPos) getBlockRandomPos
(int pX, int pY, int pZ, int pYMask) getBlockState
(BlockPos pPos) getChunk
(int pChunkX, int pChunkZ) getChunk
(int pX, int pZ, ChunkStatus pRequiredStatus, boolean pNonnull) getChunkAt
(BlockPos pPos) getChunkForCollisions
(int pChunkX, int pChunkZ) long
private Explosion.BlockInteraction
getDestroyType
(GameRules.Key<GameRules.BooleanValue> pGameRule) protected abstract LevelEntityGetter<Entity>
getEntities
(Entity pEntity, AABB pBoundingBox, Predicate<? super Entity> pPredicate) getEntities
(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) <T extends Entity>
voidgetEntities
(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate, List<? super T> pOutput) <T extends Entity>
voidgetEntities
(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate, List<? super T> pOutput, int pMaxResults) abstract Entity
getEntity
(int pId) getFluidState
(BlockPos pPos) abstract int
long
int
getHeight
(Heightmap.Types pHeightmapType, int pX, int pZ) abstract MapItemSavedData
getMapData
(String pMapName) double
The maximum radius to scan for entities when trying to check bounding boxes.float
getRainLevel
(float pDelta) abstract RecipeManager
abstract Scoreboard
int
float
int
float
getSunAngle
(float pPartialTicks) float
getThunderLevel
(float pDelta) void
globalLevelEvent
(int pId, BlockPos pPos, int pData) <T extends Entity>
voidguardEntityTick
(Consumer<T> pConsumerEntity, T pEntity) double
increaseMaxEntityRadius
(double value) Increases the max entity radius, this is safe to call with any value.boolean
boolean
isDay()
final boolean
isDebug()
boolean
isFluidAtPosition
(BlockPos pPos, Predicate<FluidState> pPredicate) static boolean
isInSpawnableBounds
(BlockPos pPos) boolean
isInWorldBounds
(BlockPos pPos) private static boolean
boolean
boolean
isNight()
private static boolean
isOutsideSpawnableHeight
(int pY) boolean
boolean
isRainingAt
(BlockPos pPos) boolean
isStateAtPosition
(BlockPos pPos, Predicate<BlockState> pState) boolean
boolean
loadedAndEntityCanStandOn
(BlockPos pPos, Entity pEntity) boolean
loadedAndEntityCanStandOnFace
(BlockPos pPos, Entity pEntity, Direction pDirection) void
markAndNotifyBlock
(BlockPos pPos, LevelChunk levelchunk, BlockState blockstate, BlockState pState, int pFlags, int pRecursionLeft) boolean
mayInteract
(Player pPlayer, BlockPos pPos) void
neighborChanged
(BlockPos pPos, Block pBlock, BlockPos pFromPos) void
neighborChanged
(BlockState pState, BlockPos pPos, Block pBlock, BlockPos pFromPos, boolean pIsMoving) void
neighborShapeChanged
(Direction pDirection, BlockState pQueried, BlockPos pPos, BlockPos pOffsetPos, int pFlags, int pRecursionLevel) long
boolean
noSave()
void
onBlockStateChange
(BlockPos pPos, BlockState pBlockState, BlockState pNewState) void
playLocalSound
(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) void
playLocalSound
(BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) abstract void
playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) void
playSeededSound
(Player pPlayer, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) abstract void
playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
playSound
(Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) void
playSound
(Player pPlayer, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) void
playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) void
playSound
(Player pPlayer, Entity pEntity, SoundEvent pEvent, SoundSource pCategory, float pVolume, float pPitch) protected void
boolean
removeBlock
(BlockPos pPos, boolean pIsMoving) void
removeBlockEntity
(BlockPos pPos) abstract void
sendBlockUpdated
(BlockPos pPos, BlockState pOldState, BlockState pNewState, int pFlags) void
sendPacketToServer
(Packet<?> pPacket) boolean
setBlock
(BlockPos pPos, BlockState pNewState, int pFlags) boolean
setBlock
(BlockPos pPos, BlockState pState, int pFlags, int pRecursionLeft) boolean
setBlockAndUpdate
(BlockPos pPos, BlockState pState) void
setBlockEntity
(BlockEntity pBlockEntity) void
setBlocksDirty
(BlockPos pBlockPos, BlockState pOldState, BlockState pNewState) abstract void
setMapData
(String pMapName, MapItemSavedData pData) void
setRainLevel
(float pStrength) void
setSkyFlashTime
(int pTimeFlash) void
setSpawnSettings
(boolean pHostile, boolean pPeaceful) void
setThunderLevel
(float pStrength) boolean
shouldTickBlocksAt
(long pChunkPos) boolean
shouldTickBlocksAt
(BlockPos pPos) boolean
shouldTickDeath
(Entity pEntity) protected void
void
updateNeighborsAt
(BlockPos pPos, Block pBlock) void
updateNeighborsAtExceptFromFacing
(BlockPos pPos, Block pBlockType, Direction pSkipSide) void
updateNeighbourForOutputSignal
(BlockPos pPos, Block pBlock) void
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
从类继承的方法 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, getMaxLightLevel, isBlockInLine
从接口继承的方法 net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision
从接口继承的方法 net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
从接口继承的方法 net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
从接口继承的方法 net.minecraftforge.client.extensions.IForgeBlockAndTintGetter
getShade
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManager
从接口继承的方法 net.minecraftforge.common.extensions.IForgeLevel
getPartEntities
从接口继承的方法 net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getBlockTicks, getChunkSource, getDifficulty, getFluidTicks, hasChunk, levelEvent, levelEvent, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTick
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
从接口继承的方法 net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, enabledFeatures, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isAreaLoaded, isEmptyBlock, isWaterAt
从接口继承的方法 net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
从接口继承的方法 net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
从接口继承的方法 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
已过时。 -
dimensionTypeId
-
dimensionTypeRegistration
-
levelData
-
profiler
-
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
-
maxEntityRadius
private double maxEntityRadius
-
-
构造器详细资料
-
Level
protected Level(WritableLevelData pLevelData, ResourceKey<Level> pDimension, RegistryAccess pRegistryAccess, Holder<DimensionType> pDimensionTypeRegistration, Supplier<ProfilerFiller> pProfiler, boolean pIsClientSide, boolean pIsDebug, long pBiomeZoomSeed, int pMaxChainedNeighborUpdates)
-
-
方法详细资料
-
isClientSide
public boolean isClientSide()- 指定者:
isClientSide
在接口中LevelReader
-
getServer
- 指定者:
getServer
在接口中LevelAccessor
-
isInWorldBounds
-
isInSpawnableBounds
-
isInWorldBoundsHorizontal
-
isOutsideSpawnableHeight
private static boolean isOutsideSpawnableHeight(int pY) -
getChunkAt
-
getChunk
- 指定者:
getChunk
在接口中LevelReader
-
getChunk
@Nullable public ChunkAccess getChunk(int pX, int pZ, ChunkStatus pRequiredStatus, boolean pNonnull) - 指定者:
getChunk
在接口中LevelReader
-
setBlock
- 指定者:
setBlock
在接口中LevelWriter
-
setBlock
- 指定者:
setBlock
在接口中LevelWriter
-
markAndNotifyBlock
public void markAndNotifyBlock(BlockPos pPos, @Nullable LevelChunk levelchunk, BlockState blockstate, BlockState pState, int pFlags, int pRecursionLeft) -
onBlockStateChange
-
removeBlock
- 指定者:
removeBlock
在接口中LevelWriter
-
destroyBlock
public boolean destroyBlock(BlockPos pPos, boolean pDropBlock, @Nullable Entity pEntity, int pRecursionLeft) - 指定者:
destroyBlock
在接口中LevelWriter
-
addDestroyBlockEffect
-
setBlockAndUpdate
-
sendBlockUpdated
public abstract void sendBlockUpdated(BlockPos pPos, BlockState pOldState, BlockState pNewState, int pFlags) -
setBlocksDirty
-
updateNeighborsAt
-
updateNeighborsAtExceptFromFacing
-
neighborChanged
-
neighborChanged
public void neighborChanged(BlockState pState, BlockPos pPos, Block pBlock, BlockPos pFromPos, boolean pIsMoving) -
neighborShapeChanged
public void neighborShapeChanged(Direction pDirection, BlockState pQueried, BlockPos pPos, BlockPos pOffsetPos, int pFlags, int pRecursionLevel) - 指定者:
neighborShapeChanged
在接口中LevelAccessor
-
getHeight
- 指定者:
getHeight
在接口中LevelReader
-
getLightEngine
- 指定者:
getLightEngine
在接口中BlockAndTintGetter
-
getBlockState
- 指定者:
getBlockState
在接口中BlockGetter
-
getFluidState
- 指定者:
getFluidState
在接口中BlockGetter
-
isDay
public boolean isDay() -
isNight
public boolean isNight() -
playSound
public void playSound(@Nullable Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) -
playSound
public void playSound(@Nullable Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) - 指定者:
playSound
在接口中LevelAccessor
-
playSeededSound
public abstract void playSeededSound(@Nullable Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) -
playSeededSound
public void playSeededSound(@Nullable Player pPlayer, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) -
playSeededSound
public abstract void playSeededSound(@Nullable Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) -
playSound
public void playSound(@Nullable Player pPlayer, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) -
playSound
public void playSound(@Nullable Player pPlayer, Entity pEntity, SoundEvent pEvent, SoundSource pCategory, float pVolume, float pPitch) -
playLocalSound
public void playLocalSound(BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) -
playLocalSound
public void playLocalSound(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) -
addParticle
public void addParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - 指定者:
addParticle
在接口中LevelAccessor
-
addParticle
public void addParticle(ParticleOptions pParticleData, boolean pForceAlwaysRender, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
getSunAngle
public float getSunAngle(float pPartialTicks) -
addBlockEntityTicker
-
addFreshBlockEntities
-
tickBlockEntities
protected void tickBlockEntities() -
guardEntityTick
-
shouldTickDeath
-
shouldTickBlocksAt
public boolean shouldTickBlocksAt(long pChunkPos) -
shouldTickBlocksAt
-
explode
public Explosion explode(@Nullable Entity pSource, double pX, double pY, double pZ, float pRadius, Level.ExplosionInteraction pExplosionInteraction) -
explode
public Explosion explode(@Nullable Entity pSource, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) -
explode
public Explosion explode(@Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, Vec3 pPos, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) -
explode
public Explosion explode(@Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) -
explode
public Explosion explode(@Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, boolean pSpawnParticles) -
getDestroyType
-
gatherChunkSourceStats
-
getBlockEntity
- 指定者:
getBlockEntity
在接口中BlockGetter
-
setBlockEntity
-
removeBlockEntity
-
isLoaded
-
loadedAndEntityCanStandOnFace
-
loadedAndEntityCanStandOn
-
updateSkyBrightness
public void updateSkyBrightness() -
setSpawnSettings
public void setSpawnSettings(boolean pHostile, boolean pPeaceful) -
prepareWeather
protected void prepareWeather() -
close
- 指定者:
close
在接口中AutoCloseable
- 抛出:
IOException
-
getChunkForCollisions
- 指定者:
getChunkForCollisions
在接口中CollisionGetter
- 指定者:
getChunkForCollisions
在接口中LevelReader
-
getEntities
public List<Entity> getEntities(@Nullable Entity pEntity, AABB pBoundingBox, Predicate<? super Entity> pPredicate) - 指定者:
getEntities
在接口中EntityGetter
-
getEntities
public <T extends Entity> List<T> getEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) - 指定者:
getEntities
在接口中EntityGetter
-
getEntities
-
getEntities
-
getEntity
-
blockEntityChanged
-
getSeaLevel
public int getSeaLevel()- 指定者:
getSeaLevel
在接口中LevelReader
-
disconnect
public void disconnect() -
getGameTime
public long getGameTime() -
getDayTime
public long getDayTime() -
mayInteract
-
broadcastEntityEvent
-
broadcastDamageEvent
-
blockEvent
-
getLevelData
- 指定者:
getLevelData
在接口中LevelAccessor
-
getGameRules
-
getThunderLevel
public float getThunderLevel(float pDelta) -
setThunderLevel
public void setThunderLevel(float pStrength) -
getRainLevel
public float getRainLevel(float pDelta) -
setRainLevel
public void setRainLevel(float pStrength) -
isThundering
public boolean isThundering() -
isRaining
public boolean isRaining() -
isRainingAt
-
getMapData
-
setMapData
-
getFreeMapId
public abstract int getFreeMapId() -
globalLevelEvent
-
fillReportDetails
-
destroyBlockProgress
-
createFireworks
public void createFireworks(double pX, double pY, double pZ, double pMotionX, double pMotionY, double pMotionZ, @Nullable CompoundTag pCompound) -
getScoreboard
-
updateNeighbourForOutputSignal
-
getCurrentDifficultyAt
- 指定者:
getCurrentDifficultyAt
在接口中LevelAccessor
-
getSkyDarken
public int getSkyDarken()- 指定者:
getSkyDarken
在接口中LevelReader
-
setSkyFlashTime
public void setSkyFlashTime(int pTimeFlash) -
getWorldBorder
- 指定者:
getWorldBorder
在接口中CollisionGetter
-
sendPacketToServer
-
dimensionType
- 指定者:
dimensionType
在接口中LevelReader
-
dimensionTypeId
-
dimensionTypeRegistration
-
dimension
-
getRandom
- 指定者:
getRandom
在接口中LevelAccessor
-
isStateAtPosition
- 指定者:
isStateAtPosition
在接口中LevelSimulatedReader
-
isFluidAtPosition
- 指定者:
isFluidAtPosition
在接口中LevelSimulatedReader
-
getRecipeManager
-
getBlockRandomPos
-
noSave
public boolean noSave() -
getProfiler
-
getProfilerSupplier
-
getBiomeManager
- 指定者:
getBiomeManager
在接口中LevelReader
-
getMaxEntityRadius
public double getMaxEntityRadius()从接口复制的说明:IForgeLevel
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
在接口中IForgeLevel
-
increaseMaxEntityRadius
public double increaseMaxEntityRadius(double value) 从接口复制的说明:IForgeLevel
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
在接口中IForgeLevel
- 参数:
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
-