Class FakeClientLevel
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
net.nikdo53.tinymultiblocklib.client.FakeClientLevel
- All Implemented Interfaces:
AutoCloseable, net.minecraft.client.multiplayer.CacheSlot.Cleaner<net.minecraft.client.multiplayer.ClientLevel>, net.minecraft.client.renderer.block.BlockAndTintGetter, net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource, net.minecraft.world.level.BlockAndLightGetter, 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.LevelWriter, net.minecraft.world.level.ScheduledTickAccess, net.minecraft.world.level.SignalGetter, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockGetterExtension, net.neoforged.neoforge.common.extensions.ILevelExtension, net.neoforged.neoforge.common.extensions.ILevelReaderExtension
public class FakeClientLevel
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.minecraft.world.level.Level
net.minecraft.world.level.Level.ExplosionInteractionNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
net.minecraft.world.level.BlockGetter.BlockStepVisitor -
Field Summary
FieldsFields inherited from class net.minecraft.client.multiplayer.ClientLevel
DEFAULT_QUIT_MESSAGEFields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, 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, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevelFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.client.renderer.block.BlockAndTintGetter
EMPTYFields inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
TRANSLATION_PREFIXFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(net.minecraft.world.entity.Entity entity) protected voidaddMapData(Map<net.minecraft.world.level.saveddata.maps.MapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData> map) voidanimateTick(int posX, int posY, int posZ) voidvoiddestroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) voidgameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.level.gameevent.GameEvent.Context context) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) static FakeClientLevelvoidglobalLevelEvent(int id, net.minecraft.core.BlockPos pos, int data) voidhandleBlockChangedAck(int sequence) voidonChunkLoaded(net.minecraft.world.level.ChunkPos chunkPos) voidoverrideMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapData) List<net.minecraft.client.player.AbstractClientPlayer> players()voidvoidqueueLightUpdate(Runnable task) voidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) voidsendPacketToServer(net.minecraft.network.protocol.Packet<?> packet) booleansetBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags, int recursionLeft) voidsetBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity) voidsetBlocksDirty(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) voidsetClientSide(boolean isClientSide) voidsetRainLevel(float strength) voidsetRespawnData(net.minecraft.world.level.storage.LevelData.RespawnData respawnData) voidsetSectionDirtyWithNeighbors(int sectionX, int sectionY, int sectionZ) voidsetSectionRangeDirty(int minSectionX, int minSectionY, int minSectionZ, int maxSectionX, int maxSectionY, int maxSectionZ) voidsetServerSimulationDistance(int serverSimulationDistance) voidsetServerVerifiedBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags) voidsetSkyFlashTime(int timeFlash) voidsetSpawnSettings(boolean spawnEnemies) voidsetThunderLevel(float strength) voidsetTimeFromServer(long gameTime) voidsyncBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 playerPos) voidtick(BooleanSupplier hasTimeLeft) voidvoidtickNonPassenger(net.minecraft.world.entity.Entity p_entity) voidunload(net.minecraft.world.level.chunk.LevelChunk chunk) Methods inherited from class net.minecraft.client.multiplayer.ClientLevel
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBreakingBlockEffect, addBreakingBlockEffect, addDestroyBlockEffect, addParticle, addParticle, calculateBlockTint, cardinalLighting, clockManager, createFireworks, disconnect, doAnimateTick, dragonParts, enabledFeatures, endFlashState, entitiesForRendering, environmentAttributes, explode, fillReportDetails, fuelValues, gatherChunkSourceStats, getAllMapData, getBlockTicks, getBlockTint, getChunkSource, getClientLeafTintColor, getEntities, getEntity, getEntityCount, getFluidTicks, getGloballyRenderedBlockEntities, getLevelData, getMapData, getModelData, getModelDataManager, getPushableEntities, getRespawnData, getScoreboard, getSeaLevel, getServerSimulationDistance, getUncachedNoiseBiome, getWorldBorder, hasChunk, isTickingEntity, levelEvent, onBlockEntityAdded, onSectionBecomingNonEmpty, playLocalSound, playLocalSound, playPlayerSound, playSeededSound, playSeededSound, potionBrewing, recipeAccess, registerForCleaning, removeEntity, shouldTickDeath, tickRateManager, toString, trackExplosionEffects, updateMethods inherited from class net.minecraft.world.level.Level
addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, canHaveWeather, close, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getDefaultClockTime, getEntities, getEntities, getEntities, getEntities, getEntity, getEntityInAnyDimension, getFluidState, getHeight, getLightEngine, getMaxEntityRadius, getOverworldClockTime, getPlayerInAnyDimension, getRainLevel, getRandom, getServer, getSkyDarken, getThunderLevel, getWorldBorderAdjustedRespawnData, guardEntityTick, hasEntities, increaseMaxEntityRadius, isBrightOutside, isClientSide, isDarkOutside, isDebug, isFluidAtPosition, isInSpawnableBounds, isInValidBounds, isInWorldBounds, isLoaded, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, palettedContainerFactory, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, precipitationAt, registryAccess, removeBlock, removeBlockEntity, setBlock, setBlockAndUpdate, shouldTickBlocksAt, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updatePOIOnBlockStateChange, updateSkyBrightnessMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setDataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndLightGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getPreMoveCollisions, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManagerMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, invalidateCapabilities, invalidateCapabilitiesMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelAccessor
createTick, createTick, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, getGameTime, levelEvent, playSound, updateNeighborsAtMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getChunk, getChunk, getEffectiveSkyBrightness, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods inherited from interface net.minecraft.world.level.ScheduledTickAccess
scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Field Details
-
INSTANCE
-
blockLikeSet
-
-
Constructor Details
-
FakeClientLevel
public FakeClientLevel(net.minecraft.client.multiplayer.ClientLevel level)
-
-
Method Details
-
setClientSide
public void setClientSide(boolean isClientSide) -
getOrThrow
-
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
-
setBlock
public boolean setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags, int recursionLeft) - Specified by:
setBlockin interfacenet.minecraft.world.level.LevelWriter- Overrides:
setBlockin classnet.minecraft.client.multiplayer.ClientLevel
-
sendPacketToServer
public void sendPacketToServer(net.minecraft.network.protocol.Packet<?> packet) - Overrides:
sendPacketToServerin classnet.minecraft.client.multiplayer.ClientLevel
-
syncBlockState
public void syncBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 playerPos) - Overrides:
syncBlockStatein classnet.minecraft.client.multiplayer.ClientLevel
-
pollLightUpdates
public void pollLightUpdates()- Overrides:
pollLightUpdatesin classnet.minecraft.client.multiplayer.ClientLevel
-
queueLightUpdate
- Overrides:
queueLightUpdatein classnet.minecraft.client.multiplayer.ClientLevel
-
handleBlockChangedAck
public void handleBlockChangedAck(int sequence) - Overrides:
handleBlockChangedAckin classnet.minecraft.client.multiplayer.ClientLevel
-
tick
- Overrides:
tickin classnet.minecraft.client.multiplayer.ClientLevel
-
tickEntities
public void tickEntities()- Overrides:
tickEntitiesin classnet.minecraft.client.multiplayer.ClientLevel
-
tickNonPassenger
public void tickNonPassenger(net.minecraft.world.entity.Entity p_entity) - Overrides:
tickNonPassengerin classnet.minecraft.client.multiplayer.ClientLevel
-
unload
public void unload(net.minecraft.world.level.chunk.LevelChunk chunk) - Overrides:
unloadin classnet.minecraft.client.multiplayer.ClientLevel
-
onChunkLoaded
public void onChunkLoaded(net.minecraft.world.level.ChunkPos chunkPos) - Overrides:
onChunkLoadedin classnet.minecraft.client.multiplayer.ClientLevel
-
clearTintCaches
public void clearTintCaches()- Overrides:
clearTintCachesin classnet.minecraft.client.multiplayer.ClientLevel
-
addEntity
public void addEntity(net.minecraft.world.entity.Entity entity) - Overrides:
addEntityin classnet.minecraft.client.multiplayer.ClientLevel
-
animateTick
public void animateTick(int posX, int posY, int posZ) - Overrides:
animateTickin classnet.minecraft.client.multiplayer.ClientLevel
-
overrideMapData
public void overrideMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapData) - Overrides:
overrideMapDatain classnet.minecraft.client.multiplayer.ClientLevel
-
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) - Overrides:
sendBlockUpdatedin classnet.minecraft.client.multiplayer.ClientLevel
-
setSectionDirtyWithNeighbors
public void setSectionDirtyWithNeighbors(int sectionX, int sectionY, int sectionZ) - Overrides:
setSectionDirtyWithNeighborsin classnet.minecraft.client.multiplayer.ClientLevel
-
setBlocksDirty
public void setBlocksDirty(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) - Overrides:
setBlocksDirtyin classnet.minecraft.client.multiplayer.ClientLevel
-
destroyBlockProgress
public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) - Overrides:
destroyBlockProgressin classnet.minecraft.client.multiplayer.ClientLevel
-
globalLevelEvent
public void globalLevelEvent(int id, net.minecraft.core.BlockPos pos, int data) - Overrides:
globalLevelEventin classnet.minecraft.client.multiplayer.ClientLevel
-
setSkyFlashTime
public void setSkyFlashTime(int timeFlash) - Overrides:
setSkyFlashTimein classnet.minecraft.client.multiplayer.ClientLevel
-
gameEvent
public void gameEvent(net.minecraft.core.Holder<net.minecraft.world.level.gameevent.GameEvent> gameEvent, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.level.gameevent.GameEvent.Context context) - Specified by:
gameEventin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
gameEventin classnet.minecraft.client.multiplayer.ClientLevel
-
addMapData
protected void addMapData(Map<net.minecraft.world.level.saveddata.maps.MapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData> map) - Overrides:
addMapDatain classnet.minecraft.client.multiplayer.ClientLevel
-
setServerSimulationDistance
public void setServerSimulationDistance(int serverSimulationDistance) - Overrides:
setServerSimulationDistancein classnet.minecraft.client.multiplayer.ClientLevel
-
setServerVerifiedBlockState
public void setServerVerifiedBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags) - Overrides:
setServerVerifiedBlockStatein classnet.minecraft.client.multiplayer.ClientLevel
-
players
- Specified by:
playersin interfacenet.minecraft.world.level.EntityGetter- Overrides:
playersin classnet.minecraft.client.multiplayer.ClientLevel
-
setRainLevel
public void setRainLevel(float strength) - Overrides:
setRainLevelin classnet.minecraft.world.level.Level
-
setThunderLevel
public void setThunderLevel(float strength) - Overrides:
setThunderLevelin classnet.minecraft.world.level.Level
-
setTimeFromServer
public void setTimeFromServer(long gameTime) - Overrides:
setTimeFromServerin classnet.minecraft.client.multiplayer.ClientLevel
-
setRespawnData
public void setRespawnData(net.minecraft.world.level.storage.LevelData.RespawnData respawnData) - Overrides:
setRespawnDatain classnet.minecraft.client.multiplayer.ClientLevel
-
setSectionRangeDirty
public void setSectionRangeDirty(int minSectionX, int minSectionY, int minSectionZ, int maxSectionX, int maxSectionY, int maxSectionZ) - Overrides:
setSectionRangeDirtyin classnet.minecraft.client.multiplayer.ClientLevel
-
setSpawnSettings
public void setSpawnSettings(boolean spawnEnemies) - Overrides:
setSpawnSettingsin classnet.minecraft.world.level.Level
-
setBlockEntity
public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity) - Overrides:
setBlockEntityin classnet.minecraft.world.level.Level
-