Class WrappedLevel
java.lang.Object
net.minecraft.world.level.Level
net.createmod.catnip.utility.levelWrappers.WrappedLevel
- All Implemented Interfaces:
io.github.fabricators_of_create.porting_lib.entity.extensions.LevelExtensions,io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions,io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelReaderExtensions,AutoCloseable,net.fabricmc.fabric.api.blockview.v2.FabricBlockView,net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource,net.minecraft.world.level.BlockAndTintGetter,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.CollisionGetter,net.minecraft.world.level.CommonLevelAccessor,net.minecraft.world.level.EntityGetter,net.minecraft.world.level.LevelAccessor,net.minecraft.world.level.LevelHeightAccessor,net.minecraft.world.level.LevelReader,net.minecraft.world.level.LevelSimulatedReader,net.minecraft.world.level.LevelSimulatedRW,net.minecraft.world.level.LevelTimeAccess,net.minecraft.world.level.LevelWriter,net.minecraft.world.level.SignalGetter
- Direct Known Subclasses:
SchematicLevel
public class WrappedLevel
extends net.minecraft.world.level.Level
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.Level
net.minecraft.world.level.Level.ExplosionInteractionNested classes/interfaces inherited from interface io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions
io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions.ChangedPosData, io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions.LevelSnapshotData -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.level.chunk.ChunkSourceprotected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>protected net.minecraft.world.level.LevelFields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, neighborUpdater, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAYFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFreshEntity(net.minecraft.world.entity.Entity entityIn) voiddestroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) net.minecraft.world.flag.FeatureFlagSetvoidgameEvent(net.minecraft.world.entity.Entity pEntity, net.minecraft.world.level.gameevent.GameEvent pEvent, net.minecraft.core.BlockPos pPos) voidgameEvent(net.minecraft.world.level.gameevent.GameEvent p_220404_, net.minecraft.world.phys.Vec3 p_220405_, net.minecraft.world.level.gameevent.GameEvent.Context p_220406_) net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block>net.minecraft.world.level.chunk.ChunkSourceprotected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>net.minecraft.world.entity.EntitygetEntity(int id) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>intnet.minecraft.world.level.LevelgetLevel()net.minecraft.world.level.lighting.LevelLightEnginenet.minecraft.world.level.saveddata.maps.MapItemSavedDatagetMapData(String mapName) intintgetMaxLocalRawBrightness(net.minecraft.core.BlockPos pos) intintnet.minecraft.world.item.crafting.RecipeManagernet.minecraft.world.scores.ScoreboardintgetSectionIndex(int y) intgetSectionIndexFromSectionY(int sectionY) intintgetSectionYFromSectionIndex(int sectionIndex) floatgetShade(net.minecraft.core.Direction p_230487_1_, boolean p_230487_2_) net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>getUncachedNoiseBiome(int p_225604_1_, int p_225604_2_, int p_225604_3_) booleanisOutsideBuildHeight(int y) booleanisOutsideBuildHeight(net.minecraft.core.BlockPos pos) booleanisStateAtPosition(net.minecraft.core.BlockPos p_217375_1_, Predicate<net.minecraft.world.level.block.state.BlockState> p_217375_2_) voidlevelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) List<? extends net.minecraft.world.entity.player.Player>players()voidplaySeededSound(net.minecraft.world.entity.player.Player pPlayer, double pX, double pY, double pZ, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> pSound, net.minecraft.sounds.SoundSource pSource, float pVolume, float pPitch, long pSeed) voidplaySeededSound(net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.entity.Entity pEntity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> pSound, net.minecraft.sounds.SoundSource pCategory, float pVolume, float pPitch, long pSeed) voidplaySound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource category, float volume, float pitch) voidplaySound(net.minecraft.world.entity.player.Player p_217384_1_, net.minecraft.world.entity.Entity p_217384_2_, net.minecraft.sounds.SoundEvent p_217384_3_, net.minecraft.sounds.SoundSource p_217384_4_, float p_217384_5_, float p_217384_6_) net.minecraft.core.RegistryAccessvoidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) booleansetBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags) voidsetChunkSource(net.minecraft.world.level.chunk.ChunkSource source) voidsetMapData(String pMapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData pData) voidupdateNeighbourForOutputSignal(net.minecraft.core.BlockPos p_175666_1_, net.minecraft.world.level.block.Block p_175666_2_) Methods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addParticle, addParticle, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, createFireworks, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, disconnect, explode, explode, explode, explode, explode, fillReportDetails, getBiomeManager, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playLocalSound, playSeededSound, playSound, playSound, prepareWeather, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSkyBrightnessMethods 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, getRawBrightnessMethods 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, hasNearbyAlivePlayerMethods inherited from interface net.fabricmc.fabric.api.blockview.v2.FabricBlockView
getBiomeFabric, getBlockEntityRenderData, hasBiomesMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, getDifficulty, hasChunk, levelEvent, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface io.github.fabricators_of_create.porting_lib.entity.extensions.LevelExtensions
getPartEntities, getPartEntityMapMethods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions
addFreshBlockEntities, markAndNotifyBlock, snapshotParticipant, updateSnapshotsMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelReaderExtensions
isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlockMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Field Details
-
level
protected net.minecraft.world.level.Level level -
chunkSource
protected net.minecraft.world.level.chunk.ChunkSource chunkSource -
entityGetter
protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> entityGetter
-
-
Constructor Details
-
WrappedLevel
public WrappedLevel(net.minecraft.world.level.Level level)
-
-
Method Details
-
setChunkSource
public void setChunkSource(net.minecraft.world.level.chunk.ChunkSource source) -
getLevel
public net.minecraft.world.level.Level getLevel() -
getLightEngine
public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()- Specified by:
getLightEnginein interfacenet.minecraft.world.level.BlockAndTintGetter- Overrides:
getLightEnginein classnet.minecraft.world.level.Level
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(@Nullable net.minecraft.core.BlockPos pos) - Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockStatein classnet.minecraft.world.level.Level
-
isStateAtPosition
public boolean isStateAtPosition(net.minecraft.core.BlockPos p_217375_1_, Predicate<net.minecraft.world.level.block.state.BlockState> p_217375_2_) - Specified by:
isStateAtPositionin interfacenet.minecraft.world.level.LevelSimulatedReader- Overrides:
isStateAtPositionin classnet.minecraft.world.level.Level
-
getBlockEntity
@Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos) - Specified by:
getBlockEntityin interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockEntityin classnet.minecraft.world.level.Level
-
setBlock
public boolean setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags) - Specified by:
setBlockin interfacenet.minecraft.world.level.LevelWriter- Overrides:
setBlockin classnet.minecraft.world.level.Level
-
getMaxLocalRawBrightness
public int getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos) -
sendBlockUpdated
public void sendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) - Specified by:
sendBlockUpdatedin classnet.minecraft.world.level.Level
-
getBlockTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks() -
getFluidTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks() -
getChunkSource
public net.minecraft.world.level.chunk.ChunkSource getChunkSource() -
levelEvent
public void levelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) -
players
-
playSeededSound
public void playSeededSound(net.minecraft.world.entity.player.Player pPlayer, double pX, double pY, double pZ, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> pSound, net.minecraft.sounds.SoundSource pSource, float pVolume, float pPitch, long pSeed) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
playSeededSound
public void playSeededSound(net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.entity.Entity pEntity, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> pSound, net.minecraft.sounds.SoundSource pCategory, float pVolume, float pPitch, long pSeed) - Specified by:
playSeededSoundin classnet.minecraft.world.level.Level
-
playSound
public void playSound(@Nullable net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource category, float volume, float pitch) - Overrides:
playSoundin classnet.minecraft.world.level.Level
-
playSound
public void playSound(@Nullable net.minecraft.world.entity.player.Player p_217384_1_, net.minecraft.world.entity.Entity p_217384_2_, net.minecraft.sounds.SoundEvent p_217384_3_, net.minecraft.sounds.SoundSource p_217384_4_, float p_217384_5_, float p_217384_6_) - Overrides:
playSoundin classnet.minecraft.world.level.Level
-
getEntity
public net.minecraft.world.entity.Entity getEntity(int id) - Specified by:
getEntityin classnet.minecraft.world.level.Level
-
getMapData
- Specified by:
getMapDatain classnet.minecraft.world.level.Level
-
addFreshEntity
public boolean addFreshEntity(net.minecraft.world.entity.Entity entityIn) -
setMapData
public void setMapData(String pMapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData pData) - Specified by:
setMapDatain classnet.minecraft.world.level.Level
-
getFreeMapId
public int getFreeMapId()- Specified by:
getFreeMapIdin classnet.minecraft.world.level.Level
-
destroyBlockProgress
public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) - Specified by:
destroyBlockProgressin classnet.minecraft.world.level.Level
-
getScoreboard
public net.minecraft.world.scores.Scoreboard getScoreboard()- Specified by:
getScoreboardin classnet.minecraft.world.level.Level
-
getRecipeManager
public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()- Specified by:
getRecipeManagerin classnet.minecraft.world.level.Level
-
getUncachedNoiseBiome
public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int p_225604_1_, int p_225604_2_, int p_225604_3_) -
registryAccess
public net.minecraft.core.RegistryAccess registryAccess()- Specified by:
registryAccessin interfacenet.minecraft.world.level.LevelReader- Overrides:
registryAccessin classnet.minecraft.world.level.Level
-
getShade
public float getShade(net.minecraft.core.Direction p_230487_1_, boolean p_230487_2_) -
updateNeighbourForOutputSignal
public void updateNeighbourForOutputSignal(net.minecraft.core.BlockPos p_175666_1_, net.minecraft.world.level.block.Block p_175666_2_) - Overrides:
updateNeighbourForOutputSignalin classnet.minecraft.world.level.Level
-
gameEvent
public void gameEvent(net.minecraft.world.entity.Entity pEntity, net.minecraft.world.level.gameevent.GameEvent pEvent, net.minecraft.core.BlockPos pPos) -
gameEvent
public void gameEvent(net.minecraft.world.level.gameevent.GameEvent p_220404_, net.minecraft.world.phys.Vec3 p_220405_, net.minecraft.world.level.gameevent.GameEvent.Context p_220406_) -
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStatsin classnet.minecraft.world.level.Level
-
getEntities
protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()- Specified by:
getEntitiesin classnet.minecraft.world.level.Level
-
getMaxBuildHeight
public int getMaxBuildHeight() -
getSectionsCount
public int getSectionsCount() -
getMinSection
public int getMinSection() -
getMaxSection
public int getMaxSection() -
isOutsideBuildHeight
public boolean isOutsideBuildHeight(net.minecraft.core.BlockPos pos) -
isOutsideBuildHeight
public boolean isOutsideBuildHeight(int y) -
getSectionIndex
public int getSectionIndex(int y) -
getSectionIndexFromSectionY
public int getSectionIndexFromSectionY(int sectionY) -
getSectionYFromSectionIndex
public int getSectionYFromSectionIndex(int sectionIndex) -
enabledFeatures
public net.minecraft.world.flag.FeatureFlagSet enabledFeatures()
-