Class PonderWorld

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
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.ServerLevelAccessor, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.Level>, net.minecraftforge.common.extensions.IForgeBlockGetter, net.minecraftforge.common.extensions.IForgeLevel

public class PonderWorld extends SchematicWorld
  • Nested Class Summary

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    protected Map<net.minecraft.core.BlockPos,Integer>
     
    protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>
     
    protected List<net.minecraft.world.entity.Entity>
     
    protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity>
     
     
     

    Fields inherited from class com.simibubi.create.content.schematics.SchematicWorld

    anchor, blocks, bounds, entities, renderedTileEntities, renderMode, tileEntities

    Fields inherited from class com.simibubi.create.foundation.utility.worldWrappers.WrappedWorld

    chunkSource, entityGetter, world

    Fields inherited from class net.minecraft.world.level.Level

    addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    PonderWorld(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
     
    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
    onTEadded(net.minecraft.world.level.block.entity.BlockEntity tileEntity, 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, 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.minecraft.world.level.Level

    addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, blockEntityChanged, blockEvent, broadcastEntityEvent, close, createFireworks, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, disconnect, explode, explode, explode, fillReportDetails, getBestNeighborSignal, getBiomeManager, getBlockRandomPos, getChunk, getChunk, getChunkAt, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getGameRules, getGameTime, getHeight, getLevelData, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSignal, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isNight, isRaining, isRainingAt, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSound, postGameEventInRadius, prepareWeather, removeBlockEntity, sendPacketToServer, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSkyBrightness

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    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.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeLevel

    getPartEntities

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

    blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getChunkSource, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, getServer, levelEvent, levelEvent, nextSubTickCount, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTick

    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, getBrightness, getChunk, getChunk, getChunk, getChunk, getDirectSignal, getHeight, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getSeaLevel, getUncachedNoiseBiome, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt

    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

      public PonderScene scene
    • originalBlocks

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

      protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> originalTileEntities
    • blockBreakingProgressions

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

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

      protected PonderWorldParticles particles
  • Constructor Details

    • PonderWorld

      public PonderWorld(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 SchematicWorld
    • setMask

      public void setMask(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 SchematicWorld
    • 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, 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 SchematicWorld
    • addParticle

      public void addParticle(net.minecraft.client.particle.Particle p)
    • onTEadded

      protected void onTEadded(net.minecraft.world.level.block.entity.BlockEntity tileEntity, net.minecraft.core.BlockPos pos)
      Overrides:
      onTEadded in class SchematicWorld
    • fixControllerTileEntities

      public void fixControllerTileEntities()
    • 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 SchematicWorld
    • 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_)