Package net.minecraft.world.level
Class Level
- All Implemented Interfaces:
AutoCloseable,BiomeManager.NoiseBiomeSource,BlockAndTintGetter,BlockGetter,CollisionGetter,CommonLevelAccessor,EntityGetter,LevelAccessor,LevelHeightAccessor,LevelReader,LevelSimulatedReader,LevelSimulatedRW,LevelTimeAccess,LevelWriter,SignalGetter,IForgeBlockAndTintGetter,ICapabilityProvider,ICapabilityProviderImpl<Level>,IForgeBlockGetter,IForgeLevel
- Direct Known Subclasses:
ClientLevel,ServerLevel
public abstract class Level
extends CapabilityProvider<Level>
implements LevelAccessor, AutoCloseable, IForgeLevel
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprivate final BiomeManagerprotected final List<TickingBlockEntity>booleanprivate final DamageSourcesprivate final ResourceKey<Level>private final ResourceKey<DimensionType>private final Holder<DimensionType>static final ResourceKey<Level>private final ArrayList<BlockEntity>final booleanprivate final booleanprotected final WritableLevelDatastatic final intstatic final intstatic final intstatic final intprivate doublestatic final intprotected final NeighborUpdaterstatic final ResourceKey<Level>floatfloatstatic final ResourceKey<Level>private final List<TickingBlockEntity>private final ArrayList<BlockEntity>private final Supplier<ProfilerFiller>floatfinal RandomSourceprotected intprivate final RegistryAccessstatic final com.mojang.serialization.Codec<ResourceKey<Level>>booleanstatic final intprivate intprivate longprivate final Threadprivate final RandomSourceDeprecated.floatprivate booleanstatic final intprivate final WorldBorderFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLevel(WritableLevelData p_270739_, ResourceKey<Level> p_270683_, RegistryAccess p_270200_, Holder<DimensionType> p_270240_, Supplier<ProfilerFiller> p_270692_, boolean p_270904_, boolean p_270470_, long p_270248_, int p_270466_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlwaysVisibleParticle(ParticleOptions p_46691_, boolean p_46692_, double p_46693_, double p_46694_, double p_46695_, double p_46696_, double p_46697_, double p_46698_) voidaddAlwaysVisibleParticle(ParticleOptions p_46684_, double p_46685_, double p_46686_, double p_46687_, double p_46688_, double p_46689_, double p_46690_) voidaddBlockEntityTicker(TickingBlockEntity p_151526_) voidaddDestroyBlockEffect(BlockPos p_151531_, BlockState p_151532_) voidaddFreshBlockEntities(Collection<BlockEntity> beList) voidaddParticle(ParticleOptions p_46638_, boolean p_46639_, double p_46640_, double p_46641_, double p_46642_, double p_46643_, double p_46644_, double p_46645_) voidaddParticle(ParticleOptions p_46631_, double p_46632_, double p_46633_, double p_46634_, double p_46635_, double p_46636_, double p_46637_) voidblockEntityChanged(BlockPos p_151544_) voidblockEvent(BlockPos p_46582_, Block p_46583_, int p_46584_, int p_46585_) voidbroadcastDamageEvent(Entity p_270831_, DamageSource p_270361_) voidbroadcastEntityEvent(Entity p_46509_, byte p_46510_) voidclose()voidcreateFireworks(double p_46475_, double p_46476_, double p_46477_, double p_46478_, double p_46479_, double p_46480_, CompoundTag p_46481_) booleandestroyBlock(BlockPos p_46626_, boolean p_46627_, Entity p_46628_, int p_46629_) abstract voiddestroyBlockProgress(int p_46506_, BlockPos p_46507_, int p_46508_) voidexplode(Entity p_255682_, double p_255803_, double p_256403_, double p_256538_, float p_255674_, boolean p_256634_, Level.ExplosionInteraction p_256111_) explode(Entity p_256599_, double p_255914_, double p_255684_, double p_255843_, float p_256310_, Level.ExplosionInteraction p_256178_) explode(Entity p_256145_, DamageSource p_256004_, ExplosionDamageCalculator p_255696_, double p_256208_, double p_256036_, double p_255746_, float p_256647_, boolean p_256098_, Level.ExplosionInteraction p_256104_) explode(Entity p_256233_, DamageSource p_255861_, ExplosionDamageCalculator p_255867_, double p_256447_, double p_255732_, double p_255717_, float p_256013_, boolean p_256228_, Level.ExplosionInteraction p_255784_, boolean p_256377_) explode(Entity p_255653_, DamageSource p_256558_, ExplosionDamageCalculator p_255929_, Vec3 p_256001_, float p_255963_, boolean p_256099_, Level.ExplosionInteraction p_256371_) fillReportDetails(CrashReport p_46656_) abstract StringgetBlockEntity(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_46504_, boolean p_46505_) getChunkAt(BlockPos p_46746_) getChunkForCollisions(int p_46711_, int p_46712_) getCurrentDifficultyAt(BlockPos p_46730_) longprivate Explosion.BlockInteractiongetDestroyType(GameRules.Key<GameRules.BooleanValue> p_256250_) 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 EntitygetEntity(int p_46492_) getFluidState(BlockPos p_46671_) abstract intlongintgetHeight(Heightmap.Types p_46571_, int p_46572_, int p_46573_) abstract MapItemSavedDatagetMapData(String p_46650_) doubleThe maximum radius to scan for entities when trying to check bounding boxes.floatgetRainLevel(float p_46723_) abstract RecipeManagerabstract ScoreboardintfloatintfloatgetSunAngle(float p_46491_) floatgetThunderLevel(float p_46662_) voidglobalLevelEvent(int p_46665_, BlockPos p_46666_, int p_46667_) <T extends Entity>
voidguardEntityTick(Consumer<T> p_46654_, T p_46655_) doubleincreaseMaxEntityRadius(double value) Increases the max entity radius, this is safe to call with any value.booleanbooleanisDay()final booleanisDebug()booleanisFluidAtPosition(BlockPos p_151541_, Predicate<FluidState> p_151542_) static booleanisInSpawnableBounds(BlockPos p_46742_) booleanisInWorldBounds(BlockPos p_46740_) private static booleanisInWorldBoundsHorizontal(BlockPos p_46458_) booleanbooleanisNight()private static booleanisOutsideSpawnableHeight(int p_46725_) booleanbooleanisRainingAt(BlockPos p_46759_) booleanisStateAtPosition(BlockPos p_46620_, Predicate<BlockState> p_46621_) booleanbooleanloadedAndEntityCanStandOn(BlockPos p_46576_, Entity p_46577_) booleanloadedAndEntityCanStandOnFace(BlockPos p_46579_, Entity p_46580_, Direction p_46581_) voidmarkAndNotifyBlock(BlockPos p_46605_, LevelChunk levelchunk, BlockState blockstate, BlockState p_46606_, int p_46607_, int p_46608_) booleanmayInteract(Player p_46557_, BlockPos p_46558_) voidneighborChanged(BlockPos p_46587_, Block p_46588_, BlockPos p_46589_) voidneighborChanged(BlockState p_220379_, BlockPos p_220380_, Block p_220381_, BlockPos p_220382_, boolean p_220383_) voidneighborShapeChanged(Direction p_220385_, BlockState p_220386_, BlockPos p_220387_, BlockPos p_220388_, int p_220389_, int p_220390_) longbooleannoSave()voidonBlockStateChange(BlockPos p_46609_, BlockState p_46610_, BlockState p_46611_) voidplayLocalSound(double p_46482_, double p_46483_, double p_46484_, SoundEvent p_46485_, SoundSource p_46486_, float p_46487_, float p_46488_, boolean p_46489_) voidplayLocalSound(BlockPos p_250938_, SoundEvent p_252209_, SoundSource p_249161_, float p_249980_, float p_250277_, boolean p_250151_) abstract voidplaySeededSound(Player p_262953_, double p_263004_, double p_263398_, double p_263376_, Holder<SoundEvent> p_263359_, SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_) voidplaySeededSound(Player p_220363_, double p_220364_, double p_220365_, double p_220366_, SoundEvent p_220367_, SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) abstract voidplaySeededSound(Player p_220372_, Entity p_220373_, Holder<SoundEvent> p_263500_, SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) voidplaySound(Entity p_252137_, BlockPos p_251749_, SoundEvent p_248842_, SoundSource p_251104_, float p_249531_, float p_250763_) voidplaySound(Player p_46543_, double p_46544_, double p_46545_, double p_46546_, SoundEvent p_46547_, SoundSource p_46548_, float p_46549_, float p_46550_) voidplaySound(Player p_46560_, BlockPos p_46561_, SoundEvent p_46562_, SoundSource p_46563_, float p_46564_, float p_46565_) voidplaySound(Player p_46551_, Entity p_46552_, SoundEvent p_46553_, SoundSource p_46554_, float p_46555_, float p_46556_) protected voidbooleanremoveBlock(BlockPos p_46623_, boolean p_46624_) voidremoveBlockEntity(BlockPos p_46748_) abstract voidsendBlockUpdated(BlockPos p_46612_, BlockState p_46613_, BlockState p_46614_, int p_46615_) voidsendPacketToServer(Packet<?> p_46657_) booleansetBlock(BlockPos p_46601_, BlockState p_46602_, int p_46603_) booleansetBlock(BlockPos p_46605_, BlockState p_46606_, int p_46607_, int p_46608_) booleansetBlockAndUpdate(BlockPos p_46598_, BlockState p_46599_) voidsetBlockEntity(BlockEntity p_151524_) voidsetBlocksDirty(BlockPos p_46678_, BlockState p_46679_, BlockState p_46680_) abstract voidsetMapData(String p_151533_, MapItemSavedData p_151534_) voidsetRainLevel(float p_46735_) voidsetSkyFlashTime(int p_46709_) voidsetSpawnSettings(boolean p_46704_, boolean p_46705_) voidsetThunderLevel(float p_46708_) booleanshouldTickBlocksAt(long p_186456_) booleanshouldTickBlocksAt(BlockPos p_220394_) booleanshouldTickDeath(Entity p_186458_) protected voidvoidupdateNeighborsAt(BlockPos p_46673_, Block p_46674_) voidupdateNeighborsAtExceptFromFacing(BlockPos p_46591_, Block p_46592_, Direction p_46593_) voidupdateNeighbourForOutputSignal(BlockPos p_46718_, Block p_46719_) voidMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightness, getShadeMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, playersMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.client.extensions.IForgeBlockAndTintGetter
getShadeMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManagerMethods inherited from interface net.minecraftforge.common.extensions.IForgeLevel
getPartEntitiesMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getBlockTicks, getChunkSource, getDifficulty, getFluidTicks, hasChunk, levelEvent, levelEvent, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface 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, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Field Details
-
RESOURCE_KEY_CODEC
-
OVERWORLD
-
NETHER
-
END
-
MAX_LEVEL_SIZE
public static final int MAX_LEVEL_SIZE- See Also:
-
LONG_PARTICLE_CLIP_RANGE
public static final int LONG_PARTICLE_CLIP_RANGE- See Also:
-
SHORT_PARTICLE_CLIP_RANGE
public static final int SHORT_PARTICLE_CLIP_RANGE- See Also:
-
MAX_BRIGHTNESS
public static final int MAX_BRIGHTNESS- See Also:
-
TICKS_PER_DAY
public static final int TICKS_PER_DAY- See Also:
-
MAX_ENTITY_SPAWN_Y
public static final int MAX_ENTITY_SPAWN_Y- See Also:
-
MIN_ENTITY_SPAWN_Y
public static final int MIN_ENTITY_SPAWN_Y- See Also:
-
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- See Also:
-
oRainLevel
public float oRainLevel -
rainLevel
public float rainLevel -
oThunderLevel
public float oThunderLevel -
thunderLevel
public float thunderLevel -
random
-
threadSafeRandom
Deprecated. -
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
-
-
Constructor Details
-
Level
protected Level(WritableLevelData p_270739_, ResourceKey<Level> p_270683_, RegistryAccess p_270200_, Holder<DimensionType> p_270240_, Supplier<ProfilerFiller> p_270692_, boolean p_270904_, boolean p_270470_, long p_270248_, int p_270466_)
-
-
Method Details
-
isClientSide
public boolean isClientSide()- Specified by:
isClientSidein interfaceLevelReader
-
getServer
- Specified by:
getServerin interfaceLevelAccessor
-
isInWorldBounds
-
isInSpawnableBounds
-
isInWorldBoundsHorizontal
-
isOutsideSpawnableHeight
private static boolean isOutsideSpawnableHeight(int p_46725_) -
getChunkAt
-
getChunk
- Specified by:
getChunkin interfaceLevelReader
-
getChunk
@Nullable public ChunkAccess getChunk(int p_46502_, int p_46503_, ChunkStatus p_46504_, boolean p_46505_) - Specified by:
getChunkin interfaceLevelReader
-
setBlock
- Specified by:
setBlockin interfaceLevelWriter
-
setBlock
- Specified by:
setBlockin interfaceLevelWriter
-
markAndNotifyBlock
public void markAndNotifyBlock(BlockPos p_46605_, @Nullable LevelChunk levelchunk, BlockState blockstate, BlockState p_46606_, int p_46607_, int p_46608_) -
onBlockStateChange
-
removeBlock
- Specified by:
removeBlockin interfaceLevelWriter
-
destroyBlock
public boolean destroyBlock(BlockPos p_46626_, boolean p_46627_, @Nullable Entity p_46628_, int p_46629_) - Specified by:
destroyBlockin interfaceLevelWriter
-
addDestroyBlockEffect
-
setBlockAndUpdate
-
sendBlockUpdated
public abstract void sendBlockUpdated(BlockPos p_46612_, BlockState p_46613_, BlockState p_46614_, int p_46615_) -
setBlocksDirty
-
updateNeighborsAt
-
updateNeighborsAtExceptFromFacing
-
neighborChanged
-
neighborChanged
public void neighborChanged(BlockState p_220379_, BlockPos p_220380_, Block p_220381_, BlockPos p_220382_, boolean p_220383_) -
neighborShapeChanged
public void neighborShapeChanged(Direction p_220385_, BlockState p_220386_, BlockPos p_220387_, BlockPos p_220388_, int p_220389_, int p_220390_) - Specified by:
neighborShapeChangedin interfaceLevelAccessor
-
getHeight
- Specified by:
getHeightin interfaceLevelReader
-
getLightEngine
- Specified by:
getLightEnginein interfaceBlockAndTintGetter
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockGetter
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockGetter
-
isDay
public boolean isDay() -
isNight
public boolean isNight() -
playSound
public void playSound(@Nullable Entity p_252137_, BlockPos p_251749_, SoundEvent p_248842_, SoundSource p_251104_, float p_249531_, float p_250763_) -
playSound
public void playSound(@Nullable Player p_46560_, BlockPos p_46561_, SoundEvent p_46562_, SoundSource p_46563_, float p_46564_, float p_46565_) - Specified by:
playSoundin interfaceLevelAccessor
-
playSeededSound
public abstract void playSeededSound(@Nullable Player p_262953_, double p_263004_, double p_263398_, double p_263376_, Holder<SoundEvent> p_263359_, SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_) -
playSeededSound
public void playSeededSound(@Nullable Player p_220363_, double p_220364_, double p_220365_, double p_220366_, SoundEvent p_220367_, SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) -
playSeededSound
public abstract void playSeededSound(@Nullable Player p_220372_, Entity p_220373_, Holder<SoundEvent> p_263500_, SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) -
playSound
public void playSound(@Nullable Player p_46543_, double p_46544_, double p_46545_, double p_46546_, SoundEvent p_46547_, SoundSource p_46548_, float p_46549_, float p_46550_) -
playSound
public void playSound(@Nullable Player p_46551_, Entity p_46552_, SoundEvent p_46553_, SoundSource p_46554_, float p_46555_, float p_46556_) -
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(double p_46482_, double p_46483_, double p_46484_, SoundEvent p_46485_, SoundSource p_46486_, float p_46487_, float p_46488_, boolean p_46489_) -
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_) - Specified by:
addParticlein interfaceLevelAccessor
-
addParticle
public void addParticle(ParticleOptions p_46638_, boolean p_46639_, 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 Explosion explode(@Nullable Entity p_256599_, double p_255914_, double p_255684_, double p_255843_, float p_256310_, Level.ExplosionInteraction p_256178_) -
explode
public Explosion 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 Explosion explode(@Nullable Entity p_255653_, @Nullable DamageSource p_256558_, @Nullable ExplosionDamageCalculator p_255929_, Vec3 p_256001_, float p_255963_, boolean p_256099_, Level.ExplosionInteraction p_256371_) -
explode
public Explosion explode(@Nullable Entity p_256145_, @Nullable DamageSource p_256004_, @Nullable ExplosionDamageCalculator p_255696_, double p_256208_, double p_256036_, double p_255746_, float p_256647_, boolean p_256098_, Level.ExplosionInteraction p_256104_) -
explode
public Explosion explode(@Nullable Entity p_256233_, @Nullable DamageSource p_255861_, @Nullable ExplosionDamageCalculator p_255867_, double p_256447_, double p_255732_, double p_255717_, float p_256013_, boolean p_256228_, Level.ExplosionInteraction p_255784_, boolean p_256377_) -
getDestroyType
-
gatherChunkSourceStats
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockGetter
-
setBlockEntity
-
removeBlockEntity
-
isLoaded
-
loadedAndEntityCanStandOnFace
-
loadedAndEntityCanStandOn
-
updateSkyBrightness
public void updateSkyBrightness() -
setSpawnSettings
public void setSpawnSettings(boolean p_46704_, boolean p_46705_) -
prepareWeather
protected void prepareWeather() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getChunkForCollisions
- Specified by:
getChunkForCollisionsin interfaceCollisionGetter- Specified by:
getChunkForCollisionsin interfaceLevelReader
-
getEntities
public List<Entity> getEntities(@Nullable Entity p_46536_, AABB p_46537_, Predicate<? super Entity> p_46538_) - Specified by:
getEntitiesin interfaceEntityGetter
-
getEntities
public <T extends Entity> List<T> getEntities(EntityTypeTest<Entity, T> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) - Specified by:
getEntitiesin interfaceEntityGetter
-
getEntities
-
getEntities
-
getEntity
-
blockEntityChanged
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin interfaceLevelReader
-
disconnect
public void disconnect() -
getGameTime
public long getGameTime() -
getDayTime
public long getDayTime() -
mayInteract
-
broadcastEntityEvent
-
broadcastDamageEvent
-
blockEvent
-
getLevelData
- Specified by:
getLevelDatain interfaceLevelAccessor
-
getGameRules
-
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_) -
isThundering
public boolean isThundering() -
isRaining
public boolean isRaining() -
isRainingAt
-
getMapData
-
setMapData
-
getFreeMapId
public abstract int getFreeMapId() -
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_, @Nullable CompoundTag p_46481_) -
getScoreboard
-
updateNeighbourForOutputSignal
-
getCurrentDifficultyAt
- Specified by:
getCurrentDifficultyAtin interfaceLevelAccessor
-
getSkyDarken
public int getSkyDarken()- Specified by:
getSkyDarkenin interfaceLevelReader
-
setSkyFlashTime
public void setSkyFlashTime(int p_46709_) -
getWorldBorder
- Specified by:
getWorldBorderin interfaceCollisionGetter
-
sendPacketToServer
-
dimensionType
- Specified by:
dimensionTypein interfaceLevelReader
-
dimensionTypeId
-
dimensionTypeRegistration
-
dimension
-
getRandom
- Specified by:
getRandomin interfaceLevelAccessor
-
isStateAtPosition
- Specified by:
isStateAtPositionin interfaceLevelSimulatedReader
-
isFluidAtPosition
- Specified by:
isFluidAtPositionin interfaceLevelSimulatedReader
-
getRecipeManager
-
getBlockRandomPos
-
noSave
public boolean noSave() -
getProfiler
-
getProfilerSupplier
-
getBiomeManager
- Specified by:
getBiomeManagerin interfaceLevelReader
-
getMaxEntityRadius
public double getMaxEntityRadius()Description copied from interface:IForgeLevelThe 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.- Specified by:
getMaxEntityRadiusin interfaceIForgeLevel
-
increaseMaxEntityRadius
public double increaseMaxEntityRadius(double value) Description copied from interface:IForgeLevelIncreases 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.- Specified by:
increaseMaxEntityRadiusin interfaceIForgeLevel- Parameters:
value- New max radius to set.- Returns:
- The new max radius
-
isDebug
public final boolean isDebug() -
getEntities
-
nextSubTickCount
public long nextSubTickCount()- Specified by:
nextSubTickCountin interfaceLevelAccessor
-
registryAccess
- Specified by:
registryAccessin interfaceLevelReader
-
damageSources
-