Class Level
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.Level
- All Implemented Interfaces:
AutoCloseable, BiomeManager.NoiseBiomeSource, BlockAndLightGetter, BlockGetter, CollisionGetter, CommonLevelAccessor, EntityGetter, LevelAccessor, LevelHeightAccessor, LevelReader, LevelSimulatedReader, LevelSimulatedRW, LevelWriter, ScheduledTickAccess, SignalGetter, IAttachmentHolder, IBlockGetterExtension, ILevelExtension, ILevelReaderExtension
- Direct Known Subclasses:
ClientLevel, ServerLevel
public abstract class Level
extends AttachmentHolder
implements LevelAccessor, AutoCloseable, ILevelExtension
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface BlockGetter
BlockGetter.BlockStepVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprivate final BiomeManagerprotected final List<TickingBlockEntity> booleanprivate final DamageSourcesprivate static final WeightedList<ExplosionParticleInfo> private final ResourceKey<Level> private final Holder<DimensionType> static final ResourceKey<Level> private final ArrayList<BlockEntity> private final booleanprivate final booleanprotected final WritableLevelDatastatic final intstatic final intstatic final intstatic final intprivate doublestatic final intprivate static final Direction[]protected final CollectingNeighborUpdaterstatic final ResourceKey<Level> floatfloatstatic final ResourceKey<Level> private final PalettedContainerFactoryprivate final List<TickingBlockEntity> private final ArrayList<BlockEntity> floatprotected final RandomSourceprotected intprivate final RegistryAccessstatic final Codec<ResourceKey<Level>> booleanstatic final intprivate intprivate final RandomSourceDeprecated.private longprivate final Threadfloatprivate booleanFields inherited from class AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface ILevelExtension
TRANSLATION_PREFIXFields inherited from interface SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLevel(WritableLevelData levelData, ResourceKey<Level> dimension, RegistryAccess registryAccess, Holder<DimensionType> dimensionTypeRegistration, boolean isClientSide, boolean isDebug, long biomeZoomSeed, int maxChainedNeighborUpdates) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlwaysVisibleParticle(ParticleOptions particle, boolean overrideLimiter, double x, double y, double z, double xd, double yd, double zd) voidaddAlwaysVisibleParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) voidvoidaddDestroyBlockEffect(BlockPos pos, BlockState blockState) voidaddFreshBlockEntities(Collection<BlockEntity> beList) voidaddParticle(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, double xd, double yd, double zd) voidaddParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) voidvoidblockEvent(BlockPos pos, Block block, int b0, int b1) voidbroadcastDamageEvent(Entity entity, DamageSource source) voidbroadcastEntityEvent(Entity entity, byte event) booleanabstract ClockManagervoidclose()voidcreateFireworks(double x, double y, double z, double xd, double yd, double zd, List<FireworkExplosion> explosions) booleandestroyBlock(BlockPos pos, boolean dropResources, @Nullable Entity breaker, int updateLimit) abstract voiddestroyBlockProgress(int id, BlockPos blockPos, int progress) abstract Collection<? extends PartEntity<?>> abstract EnvironmentAttributeSystemvoidexplode(@Nullable Entity source, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction blockInteraction) voidexplode(@Nullable Entity source, double x, double y, double z, float r, Level.ExplosionInteraction blockInteraction) voidexplode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType) abstract voidexplode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> blockParticles, Holder<SoundEvent> explosionSound) voidexplode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, Vec3 boomPos, float r, boolean fire, Level.ExplosionInteraction blockInteraction) fillReportDetails(CrashReport report) abstract FuelValuesabstract String@Nullable BlockEntitygetBlockEntity(BlockPos pos) getBlockRandomPos(int xo, int yo, int zo, int yMask) getBlockState(BlockPos pos) getChunk(int chunkX, int chunkZ) @Nullable ChunkAccessgetChunk(int chunkX, int chunkZ, ChunkStatus status, boolean loadOrGenerate) getChunkAt(BlockPos pos) @Nullable BlockGettergetChunkForCollisions(int chunkX, int chunkZ) intprivate longgetClockTimeTicks(Optional<? extends Holder<WorldClock>> clock) longprotected abstract LevelEntityGetter<Entity> getEntities(@Nullable Entity except, AABB bb, Predicate<? super Entity> selector) getEntities(EntityTypeTest<Entity, T> type, AABB bb, Predicate<? super T> selector) <T extends Entity>
voidgetEntities(EntityTypeTest<Entity, T> type, AABB bb, Predicate<? super T> selector, List<? super T> output) <T extends Entity>
voidgetEntities(EntityTypeTest<Entity, T> type, AABB bb, Predicate<? super T> selector, List<? super T> output, int maxResults) abstract @Nullable EntitygetEntity(int id) @Nullable Entity@Nullable EntitygetEntityInAnyDimension(UUID uuid) getFluidState(BlockPos pos) intgetHeight(Heightmap.Types type, int x, int z) abstract @Nullable MapItemSavedDatagetMapData(MapId id) doubleThe maximum radius to scan for entities when trying to check bounding boxes.long@Nullable PlayergetPlayerInAnyDimension(UUID uuid) getPushableEntities(Entity pusher, AABB boundingBox) floatgetRainLevel(float a) abstract LevelData.RespawnDataabstract Scoreboard@Nullable MinecraftServerintfloatgetThunderLevel(float a) getWorldBorderAdjustedRespawnData(LevelData.RespawnData respawnData) voidglobalLevelEvent(int type, BlockPos pos, int data) <T extends Entity>
voidguardEntityTick(Consumer<T> tick, T entity) <T extends Entity>
booleanhasEntities(EntityTypeTest<Entity, T> type, AABB bb, Predicate<? super T> selector) doubleincreaseMaxEntityRadius(double value) Increases the max entity radius, this is safe to call with any value.booleanbooleanbooleanfinal booleanisDebug()booleanisFluidAtPosition(BlockPos pos, Predicate<FluidState> predicate) static booleanbooleanisInValidBounds(BlockPos pos) private static booleanbooleanisInWorldBounds(BlockPos pos) private static booleanbooleanprivate static booleanisOutsideSpawnableHeight(int y) booleanbooleanisRainingAt(BlockPos pos) booleanisStateAtPosition(BlockPos pos, Predicate<BlockState> predicate) booleanbooleanloadedAndEntityCanStandOn(BlockPos pos, Entity entity) booleanloadedAndEntityCanStandOnFace(BlockPos pos, Entity entity, Direction faceDirection) voidmarkAndNotifyBlock(BlockPos pos, @Nullable LevelChunk chunk, BlockState oldState, BlockState blockState, int updateFlags, int updateLimit) booleanmayInteract(Entity entity, BlockPos pos) voidneighborChanged(BlockPos pos, Block changedBlock, @Nullable Orientation orientation) voidneighborChanged(BlockState state, BlockPos pos, Block changedBlock, @Nullable Orientation orientation, boolean movedByPiston) voidneighborShapeChanged(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int updateFlags, int updateLimit) longbooleannoSave()voidonBlockEntityAdded(BlockEntity blockEntity) voidplayLocalSound(double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay) voidplayLocalSound(BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay) voidplayLocalSound(Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) voidplayPlayerSound(SoundEvent sound, SoundSource source, float volume, float pitch) abstract voidplaySeededSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidplaySeededSound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, long seed) abstract voidplaySeededSound(@Nullable Entity except, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidplaySound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) voidplaySound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source) voidplaySound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch) voidplaySound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) voidplaySound(@Nullable Entity except, Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) abstract PotionBrewingprecipitationAt(BlockPos pos) abstract RecipeAccessbooleanremoveBlock(BlockPos pos, boolean movedByPiston) voidabstract voidsendBlockUpdated(BlockPos pos, BlockState old, BlockState current, int updateFlags) voidsendPacketToServer(Packet<?> packet) booleansetBlock(BlockPos pos, BlockState blockState, int updateFlags) booleansetBlock(BlockPos pos, BlockState blockState, int updateFlags, int updateLimit) booleansetBlockAndUpdate(BlockPos pos, BlockState blockState) voidsetBlockEntity(BlockEntity blockEntity) voidsetBlocksDirty(BlockPos pos, BlockState oldState, BlockState newState) voidsetRainLevel(float rainLevel) abstract voidsetRespawnData(LevelData.RespawnData respawnData) voidsetSkyFlashTime(int skyFlashTime) voidsetSpawnSettings(boolean spawnEnemies) voidsetThunderLevel(float thunderLevel) booleanshouldTickBlocksAt(long chunkPos) booleanbooleanshouldTickDeath(Entity entity) voidabstract TickRateManagervoidupdateNeighborsAt(BlockPos pos, Block sourceBlock, @Nullable Orientation orientation) voidupdateNeighborsAtExceptFromFacing(BlockPos pos, Block blockObject, Direction skipDirection, @Nullable Orientation orientation) voidupdateNeighbourForOutputSignal(BlockPos pos, Block changedBlock) voidupdatePOIOnBlockStateChange(BlockPos pos, BlockState oldState, BlockState newState) voidMethods inherited from class AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setDataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BlockAndLightGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLineMethods inherited from interface CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, playersMethods inherited from interface IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData, syncDataMethods inherited from interface IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, getModelDataManager, invalidateCapabilities, invalidateCapabilitiesMethods inherited from interface ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface LevelAccessor
createTick, createTick, gameEvent, gameEvent, gameEvent, gameEvent, gameEvent, getChunkSource, getDifficulty, getGameTime, hasChunk, levelEvent, levelEvent, playSound, updateNeighborsAtMethods inherited from interface LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, enabledFeatures, getBiome, getBlockStatesIfLoaded, getChunk, getChunk, getEffectiveSkyBrightness, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods inherited from interface ScheduledTickAccess
getBlockTicks, getFluidTicks, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface 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:
-
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:
-
DEFAULT_EXPLOSION_BLOCK_PARTICLES
-
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
-
soundSeedGenerator
Deprecated. -
dimensionTypeRegistration
-
levelData
-
isClientSide
private final boolean isClientSide -
biomeManager
-
dimension
-
registryAccess
-
damageSources
-
palettedContainerFactory
-
subTickCount
private long subTickCount -
restoringBlockSnapshots
public boolean restoringBlockSnapshots -
captureBlockSnapshots
public boolean captureBlockSnapshots -
capturedBlockSnapshots
-
freshBlockEntities
-
pendingFreshBlockEntities
-
NEIGHBOR_UPDATE_LIST
-
maxEntityRadius
private double maxEntityRadius
-
-
Constructor Details
-
Level
protected Level(WritableLevelData levelData, ResourceKey<Level> dimension, RegistryAccess registryAccess, Holder<DimensionType> dimensionTypeRegistration, boolean isClientSide, boolean isDebug, long biomeZoomSeed, int maxChainedNeighborUpdates)
-
-
Method Details
-
isClientSide
public boolean isClientSide()- Specified by:
isClientSidein interfaceLevelReader
-
getServer
- Specified by:
getServerin interfaceLevelAccessor
-
isInWorldBounds
-
isInValidBounds
-
isInSpawnableBounds
-
isInWorldBoundsHorizontal
-
isInValidBoundsHorizontal
-
isOutsideSpawnableHeight
private static boolean isOutsideSpawnableHeight(int y) -
getChunkAt
-
getChunk
- Specified by:
getChunkin interfaceLevelReader
-
getChunk
public @Nullable ChunkAccess getChunk(int chunkX, int chunkZ, ChunkStatus status, boolean loadOrGenerate) - Specified by:
getChunkin interfaceLevelReader
-
setBlock
- Specified by:
setBlockin interfaceLevelWriter
-
setBlock
- Specified by:
setBlockin interfaceLevelWriter
-
markAndNotifyBlock
public void markAndNotifyBlock(BlockPos pos, @Nullable LevelChunk chunk, BlockState oldState, BlockState blockState, int updateFlags, int updateLimit) -
updatePOIOnBlockStateChange
-
removeBlock
- Specified by:
removeBlockin interfaceLevelWriter
-
destroyBlock
public boolean destroyBlock(BlockPos pos, boolean dropResources, @Nullable Entity breaker, int updateLimit) - Specified by:
destroyBlockin interfaceLevelWriter
-
addDestroyBlockEffect
-
setBlockAndUpdate
-
sendBlockUpdated
public abstract void sendBlockUpdated(BlockPos pos, BlockState old, BlockState current, int updateFlags) -
setBlocksDirty
-
updateNeighborsAt
-
updateNeighborsAtExceptFromFacing
public void updateNeighborsAtExceptFromFacing(BlockPos pos, Block blockObject, Direction skipDirection, @Nullable Orientation orientation) -
neighborChanged
-
neighborChanged
public void neighborChanged(BlockState state, BlockPos pos, Block changedBlock, @Nullable Orientation orientation, boolean movedByPiston) -
neighborShapeChanged
public void neighborShapeChanged(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int updateFlags, int updateLimit) - Specified by:
neighborShapeChangedin interfaceLevelAccessor
-
getHeight
- Specified by:
getHeightin interfaceLevelReader
-
getLightEngine
- Specified by:
getLightEnginein interfaceBlockAndLightGetter
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockGetter
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockGetter
-
isBrightOutside
public boolean isBrightOutside() -
isDarkOutside
public boolean isDarkOutside() -
playSound
public void playSound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) - Specified by:
playSoundin interfaceLevelAccessor
-
playSeededSound
public abstract void playSeededSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) -
playSeededSound
public void playSeededSound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, long seed) -
playSeededSound
public abstract void playSeededSound(@Nullable Entity except, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) -
playSound
public void playSound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source) -
playSound
public void playSound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch) -
playSound
public void playSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) -
playSound
public void playSound(@Nullable Entity except, Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) -
playLocalSound
public void playLocalSound(BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay) -
playLocalSound
public void playLocalSound(Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) -
playLocalSound
public void playLocalSound(double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay) -
playPlayerSound
-
addParticle
public void addParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) - Specified by:
addParticlein interfaceLevelAccessor
-
addParticle
public void addParticle(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, double xd, double yd, double zd) -
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) -
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions particle, boolean overrideLimiter, double x, double y, double z, double xd, double yd, double zd) -
addBlockEntityTicker
-
addFreshBlockEntities
-
tickBlockEntities
public void tickBlockEntities() -
guardEntityTick
-
shouldTickDeath
-
shouldTickBlocksAt
public boolean shouldTickBlocksAt(long chunkPos) -
shouldTickBlocksAt
-
explode
public void explode(@Nullable Entity source, double x, double y, double z, float r, Level.ExplosionInteraction blockInteraction) -
explode
public void explode(@Nullable Entity source, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction blockInteraction) -
explode
public void explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, Vec3 boomPos, float r, boolean fire, Level.ExplosionInteraction blockInteraction) -
explode
public void explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType) -
explode
public abstract void explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> blockParticles, Holder<SoundEvent> explosionSound) -
gatherChunkSourceStats
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockGetter
-
setBlockEntity
-
removeBlockEntity
-
isLoaded
-
loadedAndEntityCanStandOnFace
-
loadedAndEntityCanStandOn
-
updateSkyBrightness
public void updateSkyBrightness() -
setSpawnSettings
public void setSpawnSettings(boolean spawnEnemies) -
setRespawnData
-
getRespawnData
-
getWorldBorderAdjustedRespawnData
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getChunkForCollisions
- Specified by:
getChunkForCollisionsin interfaceCollisionGetter- Specified by:
getChunkForCollisionsin interfaceLevelReader
-
getEntities
public List<Entity> getEntities(@Nullable Entity except, AABB bb, Predicate<? super Entity> selector) - Specified by:
getEntitiesin interfaceEntityGetter
-
getEntities
public <T extends Entity> List<T> getEntities(EntityTypeTest<Entity, T> type, AABB bb, Predicate<? super T> selector) - Specified by:
getEntitiesin interfaceEntityGetter
-
getEntities
-
getEntities
-
hasEntities
public <T extends Entity> boolean hasEntities(EntityTypeTest<Entity, T> type, AABB bb, Predicate<? super T> selector) -
getPushableEntities
-
getEntity
-
getEntity
-
getEntityInAnyDimension
-
getPlayerInAnyDimension
-
dragonParts
-
blockEntityChanged
-
onBlockEntityAdded
-
getOverworldClockTime
public long getOverworldClockTime() -
getDefaultClockTime
public long getDefaultClockTime() -
getClockTimeTicks
-
mayInteract
-
broadcastEntityEvent
-
broadcastDamageEvent
-
blockEvent
-
getLevelData
- Specified by:
getLevelDatain interfaceLevelAccessor
-
tickRateManager
-
getThunderLevel
public float getThunderLevel(float a) -
setThunderLevel
public void setThunderLevel(float thunderLevel) -
getRainLevel
public float getRainLevel(float a) -
setRainLevel
public void setRainLevel(float rainLevel) -
canHaveWeather
public boolean canHaveWeather() -
isThundering
public boolean isThundering() -
isRaining
public boolean isRaining() -
isRainingAt
-
precipitationAt
-
getMapData
-
globalLevelEvent
-
fillReportDetails
-
destroyBlockProgress
-
createFireworks
public void createFireworks(double x, double y, double z, double xd, double yd, double zd, List<FireworkExplosion> explosions) -
getScoreboard
-
updateNeighbourForOutputSignal
-
getSkyDarken
public int getSkyDarken()- Specified by:
getSkyDarkenin interfaceLevelReader
-
setSkyFlashTime
public void setSkyFlashTime(int skyFlashTime) -
sendPacketToServer
-
dimensionType
- Specified by:
dimensionTypein interfaceLevelReader
-
dimensionTypeRegistration
-
dimension
-
getRandom
- Specified by:
getRandomin interfaceLevelAccessor
-
isStateAtPosition
- Specified by:
isStateAtPositionin interfaceLevelSimulatedReader
-
isFluidAtPosition
- Specified by:
isFluidAtPositionin interfaceLevelSimulatedReader
-
recipeAccess
-
getBlockRandomPos
-
noSave
public boolean noSave() -
getBiomeManager
- Specified by:
getBiomeManagerin interfaceLevelReader
-
getMaxEntityRadius
public double getMaxEntityRadius()Description copied from interface:ILevelExtensionThe 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 interfaceILevelExtension
-
increaseMaxEntityRadius
public double increaseMaxEntityRadius(double value) Description copied from interface:ILevelExtensionIncreases 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 interfaceILevelExtension- 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
-
clockManager
-
environmentAttributes
- Specified by:
environmentAttributesin interfaceLevelReader
-
potionBrewing
-
fuelValues
-
getClientLeafTintColor
-
palettedContainerFactory
-