Class WrappedClientWorld

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
com.simibubi.create.foundation.utility.worldWrappers.WrappedClientWorld
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.IForgeBlockGetter, net.minecraftforge.common.extensions.IForgeLevel

@ParametersAreNonnullByDefault public class WrappedClientWorld extends net.minecraft.client.multiplayer.ClientLevel
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.multiplayer.ClientLevel

    net.minecraft.client.multiplayer.ClientLevel.ClientLevelData

    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.Level
     

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

    addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, 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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAlwaysVisibleParticle(net.minecraft.core.particles.ParticleOptions p_217404_1_, boolean p_217404_2_, double p_217404_3_, double p_217404_5_, double p_217404_7_, double p_217404_9_, double p_217404_11_, double p_217404_13_)
     
    void
    addAlwaysVisibleParticle(net.minecraft.core.particles.ParticleOptions p_195589_1_, double p_195589_2_, double p_195589_4_, double p_195589_6_, double p_195589_8_, double p_195589_10_, double p_195589_12_)
     
    void
    addParticle(net.minecraft.core.particles.ParticleOptions p_195590_1_, boolean p_195590_2_, double p_195590_3_, double p_195590_5_, double p_195590_7_, double p_195590_9_, double p_195590_11_, double p_195590_13_)
     
    void
    addParticle(net.minecraft.core.particles.ParticleOptions p_195594_1_, double p_195594_2_, double p_195594_4_, double p_195594_6_, double p_195594_8_, double p_195594_10_, double p_195594_12_)
     
    net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos p_175625_1_)
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos pos)
     
    int
    getBlockTint(net.minecraft.core.BlockPos p_225525_1_, net.minecraft.world.level.ColorResolver p_225525_2_)
     
    int
    getBrightness(net.minecraft.world.level.LightLayer type, net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    int
    getLightEmission(net.minecraft.core.BlockPos pos)
     
    <T extends net.minecraft.world.entity.LivingEntity>
    T
    getNearestEntity(List<? extends T> p_217361_1_, net.minecraft.world.entity.ai.targeting.TargetingConditions p_217361_2_, net.minecraft.world.entity.LivingEntity p_217361_3_, double p_217361_4_, double p_217361_6_, double p_217361_8_)
     
    net.minecraft.world.level.Level
     
    boolean
    hasChunkAt(net.minecraft.core.BlockPos pos)
     
    boolean
    isLoaded(net.minecraft.core.BlockPos pos)
     
    of(net.minecraft.world.level.Level world)
     
    void
    playLocalSound(double p_184134_1_, double p_184134_3_, double p_184134_5_, net.minecraft.sounds.SoundEvent p_184134_7_, net.minecraft.sounds.SoundSource p_184134_8_, float p_184134_9_, float p_184134_10_, boolean p_184134_11_)
     
    void
    playSound(net.minecraft.world.entity.player.Player p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, net.minecraft.sounds.SoundEvent p_184148_8_, net.minecraft.sounds.SoundSource p_184148_9_, float p_184148_10_, float p_184148_11_)
     

    Methods inherited from class net.minecraft.client.multiplayer.ClientLevel

    addDestroyBlockEffect, addMapData, addPlayer, animateTick, calculateBlockTint, clearTintCaches, createFireworks, destroyBlockProgress, disconnect, doAnimateTick, effects, entitiesForRendering, fillReportDetails, gameEvent, gatherChunkSourceStats, getAllMapData, getBlockTicks, getChunkSource, getCloudColor, getEntities, getEntity, getEntityCount, getFluidTicks, getFreeMapId, getLevelData, getMapData, getRecipeManager, getScoreboard, getServerSimulationDistance, getShade, getSharedSpawnAngle, getSharedSpawnPos, getSkyColor, getSkyDarken, getSkyFlashTime, getStarBrightness, getUncachedNoiseBiome, globalLevelEvent, hasChunk, isLightUpdateQueueEmpty, levelEvent, onChunkLoaded, players, playLocalSound, playSound, pollLightUpdates, putNonPlayerEntity, queueLightUpdate, registryAccess, removeEntity, sendBlockUpdated, sendPacketToServer, setBlocksDirty, setDayTime, setDefaultSpawnPos, setGameTime, setKnownState, setLightReady, setMapData, setScoreboard, setSectionDirtyWithNeighbors, setServerSimulationDistance, setSkyFlashTime, shouldTickDeath, tick, tickEntities, tickNonPassenger, toString, unload

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

    addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastEntityEvent, close, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, getBestNeighborSignal, getBiomeManager, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getGameRules, getGameTime, getHeight, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, nextSubTickCount, noSave, onBlockStateChange, playSound, postGameEventInRadius, prepareWeather, removeBlock, removeBlockEntity, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, 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, wait, wait, wait

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

    canSeeSky, getRawBrightness

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

    clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, 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

    getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed

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

    getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, 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.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity

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

    blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, 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, getBrightness, getChunk, getChunk, getDirectSignal, getHeight, getMaxLocalRawBrightness, 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

    addFreshEntity, destroyBlock, destroyBlock
  • Field Details

    • world

      protected net.minecraft.world.level.Level world
  • Method Details

    • of

      public static WrappedClientWorld of(net.minecraft.world.level.Level world)
    • hasChunkAt

      public boolean hasChunkAt(net.minecraft.core.BlockPos pos)
    • isLoaded

      public boolean isLoaded(net.minecraft.core.BlockPos pos)
      Overrides:
      isLoaded in class net.minecraft.world.level.Level
    • getBlockState

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

      public int getBrightness(net.minecraft.world.level.LightLayer type, net.minecraft.core.BlockPos pos)
    • getLightEmission

      public int getLightEmission(net.minecraft.core.BlockPos pos)
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos)
      Specified by:
      getFluidState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getFluidState in class net.minecraft.world.level.Level
    • getNearestEntity

      @Nullable public <T extends net.minecraft.world.entity.LivingEntity> T getNearestEntity(List<? extends T> p_217361_1_, net.minecraft.world.entity.ai.targeting.TargetingConditions p_217361_2_, @Nullable net.minecraft.world.entity.LivingEntity p_217361_3_, double p_217361_4_, double p_217361_6_, double p_217361_8_)
    • getBlockTint

      public int getBlockTint(net.minecraft.core.BlockPos p_225525_1_, net.minecraft.world.level.ColorResolver p_225525_2_)
      Specified by:
      getBlockTint in interface net.minecraft.world.level.BlockAndTintGetter
      Specified by:
      getBlockTint in interface net.minecraft.world.level.LevelReader
      Overrides:
      getBlockTint in class net.minecraft.client.multiplayer.ClientLevel
    • addParticle

      public void addParticle(net.minecraft.core.particles.ParticleOptions p_195594_1_, double p_195594_2_, double p_195594_4_, double p_195594_6_, double p_195594_8_, double p_195594_10_, double p_195594_12_)
      Specified by:
      addParticle in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      addParticle in class net.minecraft.client.multiplayer.ClientLevel
    • addParticle

      public void addParticle(net.minecraft.core.particles.ParticleOptions p_195590_1_, boolean p_195590_2_, double p_195590_3_, double p_195590_5_, double p_195590_7_, double p_195590_9_, double p_195590_11_, double p_195590_13_)
      Overrides:
      addParticle in class net.minecraft.client.multiplayer.ClientLevel
    • addAlwaysVisibleParticle

      public void addAlwaysVisibleParticle(net.minecraft.core.particles.ParticleOptions p_195589_1_, double p_195589_2_, double p_195589_4_, double p_195589_6_, double p_195589_8_, double p_195589_10_, double p_195589_12_)
      Overrides:
      addAlwaysVisibleParticle in class net.minecraft.client.multiplayer.ClientLevel
    • addAlwaysVisibleParticle

      public void addAlwaysVisibleParticle(net.minecraft.core.particles.ParticleOptions p_217404_1_, boolean p_217404_2_, double p_217404_3_, double p_217404_5_, double p_217404_7_, double p_217404_9_, double p_217404_11_, double p_217404_13_)
      Overrides:
      addAlwaysVisibleParticle in class net.minecraft.client.multiplayer.ClientLevel
    • playLocalSound

      public void playLocalSound(double p_184134_1_, double p_184134_3_, double p_184134_5_, net.minecraft.sounds.SoundEvent p_184134_7_, net.minecraft.sounds.SoundSource p_184134_8_, float p_184134_9_, float p_184134_10_, boolean p_184134_11_)
      Overrides:
      playLocalSound in class net.minecraft.client.multiplayer.ClientLevel
    • playSound

      public void playSound(@Nullable net.minecraft.world.entity.player.Player p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, net.minecraft.sounds.SoundEvent p_184148_8_, net.minecraft.sounds.SoundSource p_184148_9_, float p_184148_10_, float p_184148_11_)
      Overrides:
      playSound in class net.minecraft.client.multiplayer.ClientLevel
    • getBlockEntity

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

      public net.minecraft.world.level.Level getWrappedWorld()