Package net.createmod.ponder.api.level
Class PonderLevel
java.lang.Object
net.minecraft.world.level.Level
net.createmod.catnip.utility.levelWrappers.WrappedLevel
net.createmod.catnip.utility.levelWrappers.SchematicLevel
net.createmod.ponder.api.level.PonderLevel
- All Implemented Interfaces:
AutoCloseable,net.createmod.catnip.utility.levelWrappers.SchematicLevelAccessor,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.ServerLevelAccessor
public class PonderLevel
extends net.createmod.catnip.utility.levelWrappers.SchematicLevel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<net.minecraft.core.BlockPos,net.minecraft.nbt.CompoundTag> protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> protected List<net.minecraft.world.entity.Entity>protected PonderWorldParticlesFields inherited from class net.createmod.catnip.utility.levelWrappers.SchematicLevel
anchor, blockEntities, blocks, bounds, entities, renderedBlockEntities, renderModeFields inherited from class net.createmod.catnip.utility.levelWrappers.WrappedLevel
chunkSource, entityGetter, worldFields 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_DAY -
Constructor Summary
ConstructorsConstructorDescriptionPonderLevel(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlwaysVisibleParticle(net.minecraft.core.particles.ParticleOptions data, double x, double y, double z, double mx, double my, double mz) voidaddBlockDestroyEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) voidaddParticle(net.minecraft.client.particle.Particle p) voidaddParticle(net.minecraft.core.particles.ParticleOptions data, double x, double y, double z, double mx, double my, double mz) voidvoidnet.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos globalPos) intgetBrightness(net.minecraft.world.level.LightLayer p_226658_1_, net.minecraft.core.BlockPos p_226658_2_) net.minecraft.world.level.BlockGettergetChunkForCollisions(int p_225522_1_, int p_225522_2_) booleanhasChunk(int x, int y) booleanhasChunkAt(net.minecraft.core.BlockPos pos) booleanhasNearbyAlivePlayer(double p_217358_1_, double p_217358_3_, double p_217358_5_, double p_217358_7_) booleanisLoaded(net.minecraft.core.BlockPos pos) protected voidonBEAdded(net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.core.BlockPos pos) voidpopLight()protected net.minecraft.world.level.block.state.BlockStateprocessBlockStateForPrinting(net.minecraft.world.level.block.state.BlockState state) voidpushFakeLight(int light) voidrenderEntities(com.mojang.blaze3d.vertex.PoseStack ms, net.createmod.catnip.render.SuperRenderTypeBuffer buffer, net.minecraft.client.Camera ari, float pt) voidrenderParticles(com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.Camera ari, float pt) voidrestore()voidrestoreBlocks(Selection selection) booleansetBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState arg1, int arg2) voidsetBlockBreakingProgress(net.minecraft.core.BlockPos pos, int damage) voidvoidtick()Methods inherited from class net.createmod.catnip.utility.levelWrappers.SchematicLevel
addFreshEntity, destroyBlock, getAllPositions, getBiome, getBlockEntities, getBlockEntity, getBlockMap, getBlockTicks, getBounds, getEntities, getEntitiesOfClass, getEntityStream, getFluidState, getFluidTicks, getLevel, getRenderedBlockEntities, getShade, getSkyDarken, isStateAtPosition, onBEadded, players, removeBlock, sendBlockUpdated, setBoundsMethods inherited from class net.createmod.catnip.utility.levelWrappers.WrappedLevel
destroyBlockProgress, gameEvent, gameEvent, gatherChunkSourceStats, getChunkSource, getEntities, getEntity, getFreeMapId, getLightEngine, getMapData, getMaxBuildHeight, getMaxLocalRawBrightness, getMaxSection, getMinSection, getRecipeManager, getScoreboard, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, getUncachedNoiseBiome, isOutsideBuildHeight, isOutsideBuildHeight, levelEvent, playSeededSound, playSeededSound, playSound, playSound, registryAccess, setChunkSource, setMapData, updateNeighbourForOutputSignalMethods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addParticle, blockEntityChanged, blockEvent, broadcastEntityEvent, close, createFireworks, destroyBlock, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, disconnect, explode, explode, explode, fillReportDetails, getBestNeighborSignal, getBiomeManager, getBlockRandomPos, getChunk, getChunk, getChunkAt, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getGameRules, getGameTime, getHeight, getLevelData, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSignal, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, hasNeighborSignal, hasSignal, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isNight, isRaining, isRainingAt, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSound, prepareWeather, removeBlockEntity, sendPacketToServer, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSkyBrightnessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getLightEngine, 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, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed, registryAccessMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUIDMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getChunkSource, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, getServer, levelEvent, levelEvent, neighborShapeChanged, nextSubTickCount, 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, dimensionType, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getDirectSignal, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getUncachedNoiseBiome, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isClientSide, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPositionMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlock, setBlockMethods inherited from interface net.minecraft.world.level.ServerLevelAccessor
addFreshEntityWithPassengers
-
Field Details
-
scene
-
originalBlocks
protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> originalBlocks -
originalBlockEntities
-
blockBreakingProgressions
-
originalEntities
-
particles
-
-
Constructor Details
-
PonderLevel
public PonderLevel(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original)
-
-
Method Details
-
createBackup
public void createBackup() -
restore
public void restore() -
restoreBlocks
-
pushFakeLight
public void pushFakeLight(int light) -
popLight
public void popLight() -
getBrightness
public int getBrightness(net.minecraft.world.level.LightLayer p_226658_1_, net.minecraft.core.BlockPos p_226658_2_) - Specified by:
getBrightnessin interfacenet.minecraft.world.level.BlockAndTintGetter- Overrides:
getBrightnessin classnet.createmod.catnip.utility.levelWrappers.SchematicLevel
-
setMask
-
clearMask
public void clearMask() -
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos globalPos) - Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockStatein classnet.createmod.catnip.utility.levelWrappers.SchematicLevel
-
getChunkForCollisions
public net.minecraft.world.level.BlockGetter getChunkForCollisions(int p_225522_1_, int p_225522_2_) - Specified by:
getChunkForCollisionsin interfacenet.minecraft.world.level.CollisionGetter- Specified by:
getChunkForCollisionsin interfacenet.minecraft.world.level.LevelReader- Overrides:
getChunkForCollisionsin classnet.minecraft.world.level.Level
-
renderEntities
public void renderEntities(com.mojang.blaze3d.vertex.PoseStack ms, net.createmod.catnip.render.SuperRenderTypeBuffer buffer, net.minecraft.client.Camera ari, float pt) -
renderParticles
public void renderParticles(com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.Camera ari, float pt) -
tick
public void tick() -
addParticle
public void addParticle(net.minecraft.core.particles.ParticleOptions data, double x, double y, double z, double mx, double my, double mz) - Specified by:
addParticlein interfacenet.minecraft.world.level.LevelAccessor- Overrides:
addParticlein classnet.minecraft.world.level.Level
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(net.minecraft.core.particles.ParticleOptions data, double x, double y, double z, double mx, double my, double mz) - Overrides:
addAlwaysVisibleParticlein classnet.minecraft.world.level.Level
-
setBlock
public boolean setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState arg1, int arg2) - Specified by:
setBlockin interfacenet.minecraft.world.level.LevelWriter- Overrides:
setBlockin classnet.createmod.catnip.utility.levelWrappers.SchematicLevel
-
addParticle
public void addParticle(@Nullable net.minecraft.client.particle.Particle p) -
onBEAdded
protected void onBEAdded(net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.core.BlockPos pos) -
setBlockBreakingProgress
public void setBlockBreakingProgress(net.minecraft.core.BlockPos pos, int damage) -
getBlockBreakingProgressions
-
addBlockDestroyEffects
public void addBlockDestroyEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
processBlockStateForPrinting
protected net.minecraft.world.level.block.state.BlockState processBlockStateForPrinting(net.minecraft.world.level.block.state.BlockState state) - Overrides:
processBlockStateForPrintingin classnet.createmod.catnip.utility.levelWrappers.SchematicLevel
-
hasChunkAt
public boolean hasChunkAt(net.minecraft.core.BlockPos pos) -
hasChunk
public boolean hasChunk(int x, int y) -
isLoaded
public boolean isLoaded(net.minecraft.core.BlockPos pos) - Overrides:
isLoadedin classnet.minecraft.world.level.Level
-
hasNearbyAlivePlayer
public boolean hasNearbyAlivePlayer(double p_217358_1_, double p_217358_3_, double p_217358_5_, double p_217358_7_)
-