Class FakeClientLevel
java.lang.Object
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
net.nikdo53.tinymultiblocklib.client.FakeClientLevel
- 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.minecraft.world.level.SignalGetter
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.ExplosionInteraction -
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidaddBlockEntityTicker(net.minecraft.world.level.block.entity.TickingBlockEntity ticker) booleanaddFreshEntity(net.minecraft.world.entity.Entity entity) protected voidaddMapData(Map<String, net.minecraft.world.level.saveddata.maps.MapItemSavedData> map) voidaddPlayer(int playerId, net.minecraft.client.player.AbstractClientPlayer playerEntity) voidanimateTick(int posX, int posY, int posZ) voidvoiddestroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) voidvoidgameEvent(net.minecraft.world.level.gameevent.GameEvent event, net.minecraft.world.phys.Vec3 position, 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) voidlevelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) voidonChunkLoaded(net.minecraft.world.level.ChunkPos chunkPos) 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) voidsetDayTime(long time) voidsetDefaultSpawnPos(net.minecraft.core.BlockPos spawnPos, float spawnAngle) voidsetGameTime(long time) voidsetRainLevel(float strength) voidsetSectionDirtyWithNeighbors(int sectionX, int sectionY, int sectionZ) voidsetServerSimulationDistance(int serverSimulationDistance) voidsetServerVerifiedBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags) voidsetSkyFlashTime(int timeFlash) voidsetSpawnSettings(boolean hostile, boolean peaceful) voidsetThunderLevel(float strength) 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, addDestroyBlockEffect, addParticle, addParticle, calculateBlockTint, createFireworks, doAnimateTick, effects, enabledFeatures, entitiesForRendering, fillReportDetails, gatherChunkSourceStats, getAllMapData, getBlockTicks, getBlockTint, getChunkSource, getCloudColor, getEntities, getEntity, getEntityCount, getFluidTicks, getFreeMapId, getLevelData, getMapData, getRecipeManager, getScoreboard, getServerSimulationDistance, getShade, getSkyColor, getSkyDarken, getSkyFlashTime, getStarBrightness, getUncachedNoiseBiome, hasChunk, isLightUpdateQueueEmpty, overrideMapData, playLocalSound, playSeededSound, playSeededSound, putNonPlayerEntity, removeEntity, setMapData, setScoreboard, shouldTickDeath, toStringMethods inherited from class net.minecraft.world.level.Level
blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, explode, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLightEngine, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, prepareWeather, registryAccess, removeBlock, removeBlockEntity, setBlock, setBlockAndUpdate, shouldTickBlocksAt, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightnessMethods 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, 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.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, playSound, 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, getChunk, getChunk, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods 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
-
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
-
setDayTime
public void setDayTime(long time) - Overrides:
setDayTimein classnet.minecraft.client.multiplayer.ClientLevel
-
setGameTime
public void setGameTime(long time) - Overrides:
setGameTimein 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
-
addPlayer
public void addPlayer(int playerId, net.minecraft.client.player.AbstractClientPlayer playerEntity) - Overrides:
addPlayerin classnet.minecraft.client.multiplayer.ClientLevel
-
addMapData
protected void addMapData(Map<String, net.minecraft.world.level.saveddata.maps.MapItemSavedData> map) - Overrides:
addMapDatain classnet.minecraft.client.multiplayer.ClientLevel
-
addBlockEntityTicker
public void addBlockEntityTicker(net.minecraft.world.level.block.entity.TickingBlockEntity ticker) - Overrides:
addBlockEntityTickerin classnet.minecraft.world.level.Level
-
addFreshEntity
public boolean addFreshEntity(net.minecraft.world.entity.Entity entity) -
disconnect
public void disconnect()- Overrides:
disconnectin classnet.minecraft.client.multiplayer.ClientLevel
-
animateTick
public void animateTick(int posX, int posY, int posZ) - Overrides:
animateTickin 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
-
levelEvent
public void levelEvent(@Nullable @Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) - Specified by:
levelEventin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
levelEventin classnet.minecraft.client.multiplayer.ClientLevel
-
setSkyFlashTime
public void setSkyFlashTime(int timeFlash) - Overrides:
setSkyFlashTimein classnet.minecraft.client.multiplayer.ClientLevel
-
setDefaultSpawnPos
public void setDefaultSpawnPos(net.minecraft.core.BlockPos spawnPos, float spawnAngle) - Overrides:
setDefaultSpawnPosin classnet.minecraft.client.multiplayer.ClientLevel
-
gameEvent
public void gameEvent(net.minecraft.world.level.gameevent.GameEvent event, net.minecraft.world.phys.Vec3 position, net.minecraft.world.level.gameevent.GameEvent.Context context) - Specified by:
gameEventin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
gameEventin 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
-
setSpawnSettings
public void setSpawnSettings(boolean hostile, boolean peaceful) - 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
-