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.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.ClientLevelDataNested 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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlwaysVisibleParticle(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_) voidaddAlwaysVisibleParticle(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_) voidaddParticle(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_) voidaddParticle(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.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos p_175625_1_) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) intgetBlockTint(net.minecraft.core.BlockPos p_225525_1_, net.minecraft.world.level.ColorResolver p_225525_2_) intgetBrightness(net.minecraft.world.level.LightLayer type, net.minecraft.core.BlockPos pos) net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos pos) intgetLightEmission(net.minecraft.core.BlockPos pos) <T extends net.minecraft.world.entity.LivingEntity>
TgetNearestEntity(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.LevelbooleanhasChunkAt(net.minecraft.core.BlockPos pos) booleanisLoaded(net.minecraft.core.BlockPos pos) static WrappedClientWorldof(net.minecraft.world.level.Level world) voidplayLocalSound(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_) voidplaySound(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, getTagManager, 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, shouldDelayFallingBlockEntityRemoval, shouldTickDeath, tick, tickEntities, tickNonPassenger, toString, unloadMethods inherited from class net.minecraft.world.level.Level
addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastEntityEvent, close, destroyBlock, dimension, dimensionType, 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, updateSkyBrightnessMethods 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, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBiomeName, getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, 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, getBiome, getBlockStatesIfLoaded, getBrightness, getChunk, getChunk, getDirectSignal, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
-
Field Details
-
world
protected net.minecraft.world.level.Level world
-
-
Method Details
-
of
-
hasChunkAt
public boolean hasChunkAt(net.minecraft.core.BlockPos pos) -
isLoaded
public boolean isLoaded(net.minecraft.core.BlockPos pos) - Overrides:
isLoadedin classnet.minecraft.world.level.Level
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos) - Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockStatein classnet.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:
getFluidStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getFluidStatein classnet.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:
getBlockTintin interfacenet.minecraft.world.level.BlockAndTintGetter- Specified by:
getBlockTintin interfacenet.minecraft.world.level.LevelReader- Overrides:
getBlockTintin classnet.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:
addParticlein interfacenet.minecraft.world.level.LevelAccessor- Overrides:
addParticlein classnet.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:
addParticlein classnet.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:
addAlwaysVisibleParticlein classnet.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:
addAlwaysVisibleParticlein classnet.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:
playLocalSoundin classnet.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:
playSoundin classnet.minecraft.client.multiplayer.ClientLevel
-
getBlockEntity
@Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos p_175625_1_) - Specified by:
getBlockEntityin interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockEntityin classnet.minecraft.world.level.Level
-
getWrappedWorld
public net.minecraft.world.level.Level getWrappedWorld()
-