Class SchematicWorld

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
com.simibubi.create.foundation.utility.worldWrappers.WrappedWorld
com.simibubi.create.content.schematics.SchematicWorld
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.IForgeLevel
Direct Known Subclasses:
PonderWorld

public class SchematicWorld extends WrappedWorld implements net.minecraft.world.level.ServerLevelAccessor
  • 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
    net.minecraft.core.BlockPos
     
    protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>
     
    protected net.minecraft.world.level.levelgen.structure.BoundingBox
     
    protected List<net.minecraft.world.entity.Entity>
     
    protected List<net.minecraft.world.level.block.entity.BlockEntity>
     
    boolean
     
    protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity>
     

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

    entityGetter, provider, world

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

    addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LOGGER, 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
    SchematicWorld(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original)
     
    SchematicWorld(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original, WrappedChunkProvider provider)
     
    SchematicWorld(net.minecraft.world.level.Level original)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addFreshEntity(net.minecraft.world.entity.Entity entityIn)
     
    boolean
    destroyBlock(net.minecraft.core.BlockPos arg0, boolean arg1)
     
    Set<net.minecraft.core.BlockPos>
     
    net.minecraft.world.level.biome.Biome
    getBiome(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos pos)
     
    Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos globalPos)
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block>
     
    net.minecraft.world.level.levelgen.structure.BoundingBox
     
    int
    getBrightness(net.minecraft.world.level.LightLayer p_226658_1_, net.minecraft.core.BlockPos p_226658_2_)
     
    List<net.minecraft.world.entity.Entity>
    getEntities(net.minecraft.world.entity.Entity arg0, net.minecraft.world.phys.AABB arg1, Predicate<? super net.minecraft.world.entity.Entity> arg2)
     
    <T extends net.minecraft.world.entity.Entity>
    List<T>
    getEntitiesOfClass(Class<T> arg0, net.minecraft.world.phys.AABB arg1, Predicate<? super T> arg2)
     
    Stream<net.minecraft.world.entity.Entity>
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>
     
    net.minecraft.server.level.ServerLevel
     
    Iterable<net.minecraft.world.level.block.entity.BlockEntity>
     
    int
     
    boolean
    isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> predicate)
     
    protected void
    onTEadded(net.minecraft.world.level.block.entity.BlockEntity tileEntity, net.minecraft.core.BlockPos pos)
     
    List<? extends net.minecraft.world.entity.player.Player>
     
    protected net.minecraft.world.level.block.state.BlockState
    processBlockStateForPrinting(net.minecraft.world.level.block.state.BlockState state)
     
    boolean
    removeBlock(net.minecraft.core.BlockPos arg0, boolean arg1)
     
    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)
     
    boolean
    setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState arg1, int arg2)
     

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

    addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, addParticle, blockEntityChanged, blockEvent, broadcastEntityEvent, close, createFireworks, destroyBlock, dimension, dimensionType, disconnect, explode, explode, explode, fillReportDetails, getBestNeighborSignal, getBiomeManager, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, 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, isLoaded, 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, shouldDelayFallingBlockEntityRemoval, 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, getShade

    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

    getBiomeName, 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, hasNearbyAlivePlayer

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

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

    addParticle, blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getChunkSource, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, getServer, hasChunk, 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, getChunkForCollisions, getDirectSignal, getHeight, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getSeaLevel, getUncachedNoiseBiome, hasChunkAt, 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

    • blocks

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

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

      protected List<net.minecraft.world.level.block.entity.BlockEntity> renderedTileEntities
    • entities

      protected List<net.minecraft.world.entity.Entity> entities
    • bounds

      protected net.minecraft.world.level.levelgen.structure.BoundingBox bounds
    • anchor

      public net.minecraft.core.BlockPos anchor
    • renderMode

      public boolean renderMode
  • Constructor Details

    • SchematicWorld

      public SchematicWorld(net.minecraft.world.level.Level original)
    • SchematicWorld

      public SchematicWorld(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original)
    • SchematicWorld

      public SchematicWorld(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original, WrappedChunkProvider provider)
  • Method Details

    • getAllPositions

      public Set<net.minecraft.core.BlockPos> getAllPositions()
    • addFreshEntity

      public boolean addFreshEntity(net.minecraft.world.entity.Entity entityIn)
      Specified by:
      addFreshEntity in interface net.minecraft.world.level.LevelWriter
      Overrides:
      addFreshEntity in class WrappedWorld
    • getEntityStream

      public Stream<net.minecraft.world.entity.Entity> getEntityStream()
    • getBlockEntity

      public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockEntity in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockEntity in class WrappedWorld
    • onTEadded

      protected void onTEadded(net.minecraft.world.level.block.entity.BlockEntity tileEntity, net.minecraft.core.BlockPos pos)
    • 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 WrappedWorld
    • getBlockMap

      public Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> getBlockMap()
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos)
      Specified by:
      getFluidState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getFluidState in class net.minecraft.world.level.Level
    • getBiome

      public net.minecraft.world.level.biome.Biome getBiome(net.minecraft.core.BlockPos pos)
      Specified by:
      getBiome in interface net.minecraft.world.level.LevelReader
    • 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
    • getBlockTicks

      public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks()
      Specified by:
      getBlockTicks in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      getBlockTicks in class WrappedWorld
    • getFluidTicks

      public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()
      Specified by:
      getFluidTicks in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      getFluidTicks in class WrappedWorld
    • getEntities

      public List<net.minecraft.world.entity.Entity> getEntities(net.minecraft.world.entity.Entity arg0, net.minecraft.world.phys.AABB arg1, Predicate<? super net.minecraft.world.entity.Entity> arg2)
      Specified by:
      getEntities in interface net.minecraft.world.level.EntityGetter
      Overrides:
      getEntities in class net.minecraft.world.level.Level
    • getEntitiesOfClass

      public <T extends net.minecraft.world.entity.Entity> List<T> getEntitiesOfClass(Class<T> arg0, net.minecraft.world.phys.AABB arg1, Predicate<? super T> arg2)
      Specified by:
      getEntitiesOfClass in interface net.minecraft.world.level.EntityGetter
    • players

      public List<? extends net.minecraft.world.entity.player.Player> players()
      Specified by:
      players in interface net.minecraft.world.level.EntityGetter
      Overrides:
      players in class WrappedWorld
    • getSkyDarken

      public int getSkyDarken()
      Specified by:
      getSkyDarken in interface net.minecraft.world.level.LevelReader
      Overrides:
      getSkyDarken in class net.minecraft.world.level.Level
    • isStateAtPosition

      public boolean isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> predicate)
      Specified by:
      isStateAtPosition in interface net.minecraft.world.level.LevelSimulatedReader
      Overrides:
      isStateAtPosition in class WrappedWorld
    • destroyBlock

      public boolean destroyBlock(net.minecraft.core.BlockPos arg0, boolean arg1)
      Specified by:
      destroyBlock in interface net.minecraft.world.level.LevelWriter
    • removeBlock

      public boolean removeBlock(net.minecraft.core.BlockPos arg0, boolean arg1)
      Specified by:
      removeBlock in interface net.minecraft.world.level.LevelWriter
      Overrides:
      removeBlock 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 WrappedWorld
    • 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:
      sendBlockUpdated in class WrappedWorld
    • getBounds

      public net.minecraft.world.level.levelgen.structure.BoundingBox getBounds()
    • getRenderedTileEntities

      public Iterable<net.minecraft.world.level.block.entity.BlockEntity> getRenderedTileEntities()
    • processBlockStateForPrinting

      protected net.minecraft.world.level.block.state.BlockState processBlockStateForPrinting(net.minecraft.world.level.block.state.BlockState state)
    • getLevel

      public net.minecraft.server.level.ServerLevel getLevel()
      Specified by:
      getLevel in interface net.minecraft.world.level.ServerLevelAccessor
      Overrides:
      getLevel in class WrappedWorld