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:
io.github.fabricators_of_create.porting_lib.extensions.entity.LevelExtensions, io.github.fabricators_of_create.porting_lib.extensions.LevelExtensions, io.github.fabricators_of_create.porting_lib.extensions.LevelReaderExtensions, io.github.fabricators_of_create.porting_lib.extensions.transfer.LevelExtensions, 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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.github.fabricators_of_create.porting_lib.extensions.LevelExtensions

    io.github.fabricators_of_create.porting_lib.extensions.LevelExtensions.ChangedPosData, io.github.fabricators_of_create.porting_lib.extensions.LevelExtensions.LevelSnapshotData
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Map<net.minecraft.core.BlockPos,Integer>
     
    protected 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>
     
     
     

    Fields inherited from class net.createmod.catnip.utility.levelWrappers.SchematicLevel

    anchor, blockEntities, blocks, bounds, entities, renderedBlockEntities, renderMode

    Fields inherited from class net.createmod.catnip.utility.levelWrappers.WrappedLevel

    chunkSource, entityGetter, world

    Fields 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

    Constructors
    Constructor
    Description
    PonderLevel(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAlwaysVisibleParticle(net.minecraft.core.particles.ParticleOptions data, double x, double y, double z, double mx, double my, double mz)
     
    void
    addBlockDestroyEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    void
    addParticle(net.minecraft.client.particle.Particle p)
     
    void
    addParticle(net.minecraft.core.particles.ParticleOptions data, double x, double y, double z, double mx, double my, double mz)
     
    void
     
    void
     
    Map<net.minecraft.core.BlockPos,Integer>
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos globalPos)
     
    int
    getBrightness(net.minecraft.world.level.LightLayer p_226658_1_, net.minecraft.core.BlockPos p_226658_2_)
     
    net.minecraft.world.level.BlockGetter
    getChunkForCollisions(int p_225522_1_, int p_225522_2_)
     
    boolean
    hasChunk(int x, int y)
     
    boolean
    hasChunkAt(net.minecraft.core.BlockPos pos)
     
    boolean
    hasNearbyAlivePlayer(double p_217358_1_, double p_217358_3_, double p_217358_5_, double p_217358_7_)
     
    boolean
    isLoaded(net.minecraft.core.BlockPos pos)
     
    protected void
    onBEAdded(net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.core.BlockPos pos)
     
    void
     
    protected net.minecraft.world.level.block.state.BlockState
    processBlockStateForPrinting(net.minecraft.world.level.block.state.BlockState state)
     
    void
    pushFakeLight(int light)
     
    void
    renderEntities(com.mojang.blaze3d.vertex.PoseStack ms, net.createmod.catnip.render.SuperRenderTypeBuffer buffer, net.minecraft.client.Camera ari, float pt)
     
    void
    renderParticles(com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.Camera ari, float pt)
     
    void
     
    void
     
    boolean
    setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState arg1, int arg2)
     
    void
    setBlockBreakingProgress(net.minecraft.core.BlockPos pos, int damage)
     
    void
     
    void
     

    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, setBounds

    Methods 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, updateNeighbourForOutputSignal

    Methods 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, updateSkyBrightness

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    canSeeSky, getLightEngine, getRawBrightness

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

    clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

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

    collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision

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

    getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed, registryAccess

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

    getEntities, getEntities, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID

    Methods 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, scheduleTick

    Methods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.entity.LevelExtensions

    getPartEntities, getPartEntityMap

    Methods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.LevelExtensions

    addFreshBlockEntities, markAndNotifyBlock, snapshotParticipant, updateSnapshots

    Methods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.transfer.LevelExtensions

    port_lib$getFluidApiCache, port_lib$getItemCache

    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, 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, isWaterAt

    Methods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.LevelReaderExtensions

    isAreaLoaded

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

    isFluidAtPosition

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

    getMoonBrightness, getMoonPhase, getTimeOfDay

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

    destroyBlock, destroyBlock, setBlock

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

    addFreshEntityWithPassengers
  • Field Details

    • scene

      @Nullable public PonderScene scene
    • originalBlocks

      protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> originalBlocks
    • originalBlockEntities

      protected Map<net.minecraft.core.BlockPos,net.minecraft.nbt.CompoundTag> originalBlockEntities
    • blockBreakingProgressions

      protected Map<net.minecraft.core.BlockPos,Integer> blockBreakingProgressions
    • originalEntities

      protected List<net.minecraft.world.entity.Entity> originalEntities
    • particles

      protected PonderWorldParticles 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

      public void restoreBlocks(Selection selection)
    • 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:
      getBrightness in interface net.minecraft.world.level.BlockAndTintGetter
      Overrides:
      getBrightness in class net.createmod.catnip.utility.levelWrappers.SchematicLevel
    • setMask

      public void setMask(@Nullable Selection mask)
    • clearMask

      public void clearMask()
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos globalPos)
      Specified by:
      getBlockState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockState in class net.createmod.catnip.utility.levelWrappers.SchematicLevel
    • getChunkForCollisions

      public net.minecraft.world.level.BlockGetter getChunkForCollisions(int p_225522_1_, int p_225522_2_)
      Specified by:
      getChunkForCollisions in interface net.minecraft.world.level.CollisionGetter
      Specified by:
      getChunkForCollisions in interface net.minecraft.world.level.LevelReader
      Overrides:
      getChunkForCollisions in class net.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:
      addParticle in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      addParticle in class net.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:
      addAlwaysVisibleParticle in class net.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:
      setBlock in interface net.minecraft.world.level.LevelWriter
      Overrides:
      setBlock in class net.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

      public Map<net.minecraft.core.BlockPos,Integer> 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:
      processBlockStateForPrinting in class net.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:
      isLoaded in class net.minecraft.world.level.Level
    • hasNearbyAlivePlayer

      public boolean hasNearbyAlivePlayer(double p_217358_1_, double p_217358_3_, double p_217358_5_, double p_217358_7_)