java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
com.simibubi.create.foundation.utility.worldWrappers.WrappedWorld
All Implemented Interfaces:
AutoCloseable, 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.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.Level>, net.minecraftforge.common.extensions.IForgeLevel
Direct Known Subclasses:
ContraptionWorld, PlacementSimulationWorld, SchematicWorld

@ParametersAreNonnullByDefault public class WrappedWorld extends net.minecraft.world.level.Level
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
     
    protected net.minecraft.world.level.chunk.ChunkSource
     
    protected net.minecraft.world.level.Level
     

    Fields inherited from class net.minecraft.world.level.Level

    addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LOGGER, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappedWorld(net.minecraft.world.level.Level world)
     
    WrappedWorld(net.minecraft.world.level.Level world, net.minecraft.world.level.chunk.ChunkSource provider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addFreshEntity(net.minecraft.world.entity.Entity entityIn)
     
    void
    destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
     
    void
    gameEvent(net.minecraft.world.entity.Entity pEntity, net.minecraft.world.level.gameevent.GameEvent pEvent, net.minecraft.core.BlockPos pPos)
     
     
    net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block>
     
    net.minecraft.world.level.chunk.ChunkSource
     
    protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
     
    net.minecraft.world.entity.Entity
    getEntity(int id)
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>
     
    int
     
    net.minecraft.world.level.Level
     
    net.minecraft.world.level.lighting.LevelLightEngine
     
    net.minecraft.world.level.saveddata.maps.MapItemSavedData
    getMapData(String mapName)
     
    int
    getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.item.crafting.RecipeManager
     
    net.minecraft.world.scores.Scoreboard
     
    float
    getShade(net.minecraft.core.Direction p_230487_1_, boolean p_230487_2_)
     
    net.minecraft.tags.TagContainer
     
    net.minecraft.world.level.biome.Biome
    getUncachedNoiseBiome(int p_225604_1_, int p_225604_2_, int p_225604_3_)
     
    boolean
    hasChunkAt(net.minecraft.core.BlockPos p_175667_1_)
     
    boolean
    isStateAtPosition(net.minecraft.core.BlockPos p_217375_1_, Predicate<net.minecraft.world.level.block.state.BlockState> p_217375_2_)
     
    void
    levelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data)
     
    List<? extends net.minecraft.world.entity.player.Player>
     
    void
    playSound(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)
     
    void
    playSound(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.RegistryAccess
     
    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)
     
    boolean
    setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags)
     
    void
    setMapData(String pMapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData pData)
     
    void
    updateNeighbourForOutputSignal(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, addFreshBlockEntities, addParticle, addParticle, blockEntityChanged, blockEvent, broadcastEntityEvent, close, createFireworks, destroyBlock, dimension, dimensionType, disconnect, explode, explode, explode, fillReportDetails, getBestNeighborSignal, getBiomeManager, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSound, postGameEventInRadius, prepareWeather, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldDelayFallingBlockEntityRemoval, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSkyBrightness

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter

    canSeeSky, getBrightness, getRawBrightness

    Methods inherited from interface net.minecraft.world.level.BlockGetter

    clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.minecraft.world.level.CollisionGetter

    collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision

    Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor

    getBiomeName, getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed

    Methods inherited from interface net.minecraft.world.level.EntityGetter

    getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraft.world.level.LevelAccessor

    blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, hasChunk, levelEvent, scheduleTick, scheduleTick, scheduleTick, scheduleTick

    Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor

    getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight

    Methods inherited from interface net.minecraft.world.level.LevelReader

    canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getBrightness, getChunk, getChunk, getDirectSignal, getHeight, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isEmptyBlock, isWaterAt

    Methods inherited from interface net.minecraft.world.level.LevelTimeAccess

    getMoonBrightness, getMoonPhase, getTimeOfDay

    Methods inherited from interface net.minecraft.world.level.LevelWriter

    destroyBlock, destroyBlock
  • Field Details

    • world

      protected net.minecraft.world.level.Level world
    • provider

      protected net.minecraft.world.level.chunk.ChunkSource provider
    • entityGetter

      protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> entityGetter
  • Constructor Details

    • WrappedWorld

      public WrappedWorld(net.minecraft.world.level.Level world, net.minecraft.world.level.chunk.ChunkSource provider)
    • WrappedWorld

      public WrappedWorld(net.minecraft.world.level.Level world)
  • Method Details

    • getLevel

      public net.minecraft.world.level.Level getLevel()
    • getLightEngine

      public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()
      Specified by:
      getLightEngine in interface net.minecraft.world.level.BlockAndTintGetter
      Overrides:
      getLightEngine in class net.minecraft.world.level.Level
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(@Nullable net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockState in class net.minecraft.world.level.Level
    • isStateAtPosition

      public boolean isStateAtPosition(@Nullable net.minecraft.core.BlockPos p_217375_1_, @Nullable Predicate<net.minecraft.world.level.block.state.BlockState> p_217375_2_)
      Specified by:
      isStateAtPosition in interface net.minecraft.world.level.LevelSimulatedReader
      Overrides:
      isStateAtPosition in class net.minecraft.world.level.Level
    • getBlockEntity

      public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(@Nullable net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockEntity in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockEntity in class net.minecraft.world.level.Level
    • setBlock

      public boolean setBlock(@Nullable net.minecraft.core.BlockPos pos, @Nullable net.minecraft.world.level.block.state.BlockState newState, int flags)
      Specified by:
      setBlock in interface net.minecraft.world.level.LevelWriter
      Overrides:
      setBlock in class net.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:
      sendBlockUpdated in class net.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

      public List<? extends net.minecraft.world.entity.player.Player> players()
    • 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)
      Specified by:
      playSound in class net.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_)
      Specified by:
      playSound in class net.minecraft.world.level.Level
    • getEntity

      public net.minecraft.world.entity.Entity getEntity(int id)
      Specified by:
      getEntity in class net.minecraft.world.level.Level
    • getMapData

      public net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(String mapName)
      Specified by:
      getMapData in class net.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:
      setMapData in class net.minecraft.world.level.Level
    • getFreeMapId

      public int getFreeMapId()
      Specified by:
      getFreeMapId in class net.minecraft.world.level.Level
    • destroyBlockProgress

      public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
      Specified by:
      destroyBlockProgress in class net.minecraft.world.level.Level
    • getScoreboard

      public net.minecraft.world.scores.Scoreboard getScoreboard()
      Specified by:
      getScoreboard in class net.minecraft.world.level.Level
    • getRecipeManager

      public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()
      Specified by:
      getRecipeManager in class net.minecraft.world.level.Level
    • getTagManager

      public net.minecraft.tags.TagContainer getTagManager()
      Specified by:
      getTagManager in class net.minecraft.world.level.Level
    • getUncachedNoiseBiome

      public 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()
    • getShade

      public float getShade(net.minecraft.core.Direction p_230487_1_, boolean p_230487_2_)
    • hasChunkAt

      public boolean hasChunkAt(net.minecraft.core.BlockPos p_175667_1_)
    • updateNeighbourForOutputSignal

      public void updateNeighbourForOutputSignal(net.minecraft.core.BlockPos p_175666_1_, net.minecraft.world.level.block.Block p_175666_2_)
      Overrides:
      updateNeighbourForOutputSignal in class net.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)
    • gatherChunkSourceStats

      public String gatherChunkSourceStats()
      Specified by:
      gatherChunkSourceStats in class net.minecraft.world.level.Level
    • getEntities

      protected net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()
      Specified by:
      getEntities in class net.minecraft.world.level.Level