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
FieldsModifier and TypeFieldDescriptionnet.minecraft.core.BlockPosprotected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> protected net.minecraft.world.level.levelgen.structure.BoundingBoxprotected List<net.minecraft.world.entity.Entity>protected List<net.minecraft.world.level.block.entity.BlockEntity>booleanprotected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> Fields inherited from class com.simibubi.create.foundation.utility.worldWrappers.WrappedWorld
chunkSource, entityGetter, worldFields 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
ConstructorsConstructorDescriptionSchematicWorld(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original) SchematicWorld(net.minecraft.world.level.Level original) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFreshEntity(net.minecraft.world.entity.Entity entityIn) booleandestroyBlock(net.minecraft.core.BlockPos arg0, boolean arg1) Set<net.minecraft.core.BlockPos>net.minecraft.world.level.biome.BiomegetBiome(net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos globalPos) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block>net.minecraft.world.level.levelgen.structure.BoundingBoxintgetBrightness(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.FluidStategetFluidState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid>net.minecraft.server.level.ServerLevelgetLevel()Iterable<net.minecraft.world.level.block.entity.BlockEntity>intbooleanisStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> predicate) protected voidonTEadded(net.minecraft.world.level.block.entity.BlockEntity tileEntity, net.minecraft.core.BlockPos pos) List<? extends net.minecraft.world.entity.player.Player>players()protected net.minecraft.world.level.block.state.BlockStateprocessBlockStateForPrinting(net.minecraft.world.level.block.state.BlockState state) booleanremoveBlock(net.minecraft.core.BlockPos arg0, boolean arg1) voidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) booleansetBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState arg1, int arg2) Methods inherited from class com.simibubi.create.foundation.utility.worldWrappers.WrappedWorld
destroyBlockProgress, gameEvent, gatherChunkSourceStats, getChunkSource, getEntities, getEntity, getFreeMapId, getLightEngine, getMapData, getMaxBuildHeight, getMaxLocalRawBrightness, getMaxSection, getMinSection, getRecipeManager, getScoreboard, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, getShade, getTagManager, getUncachedNoiseBiome, hasChunkAt, isOutsideBuildHeight, isOutsideBuildHeight, levelEvent, playSound, playSound, registryAccess, setChunkSource, setMapData, updateNeighbourForOutputSignalMethods 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, updateSkyBrightnessMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods 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, getRawBrightness, getShadeMethods 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
getBiomeName, 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, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods 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, 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, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getSeaLevel, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, 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
-
blocks
-
tileEntities
protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> tileEntities -
renderedTileEntities
-
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)
-
-
Method Details
-
getAllPositions
-
addFreshEntity
public boolean addFreshEntity(net.minecraft.world.entity.Entity entityIn) - Specified by:
addFreshEntityin interfacenet.minecraft.world.level.LevelWriter- Overrides:
addFreshEntityin classWrappedWorld
-
getEntityStream
-
getBlockEntity
public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos) - Specified by:
getBlockEntityin interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockEntityin classWrappedWorld
-
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:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockStatein classWrappedWorld
-
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:
getFluidStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getFluidStatein classnet.minecraft.world.level.Level
-
getBiome
public net.minecraft.world.level.biome.Biome getBiome(net.minecraft.core.BlockPos pos) - Specified by:
getBiomein interfacenet.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:
getBrightnessin interfacenet.minecraft.world.level.BlockAndTintGetter
-
getBlockTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
getBlockTicksin classWrappedWorld
-
getFluidTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()- Specified by:
getFluidTicksin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
getFluidTicksin classWrappedWorld
-
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:
getEntitiesin interfacenet.minecraft.world.level.EntityGetter- Overrides:
getEntitiesin classnet.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:
getEntitiesOfClassin interfacenet.minecraft.world.level.EntityGetter
-
players
- Specified by:
playersin interfacenet.minecraft.world.level.EntityGetter- Overrides:
playersin classWrappedWorld
-
getSkyDarken
public int getSkyDarken()- Specified by:
getSkyDarkenin interfacenet.minecraft.world.level.LevelReader- Overrides:
getSkyDarkenin classnet.minecraft.world.level.Level
-
isStateAtPosition
public boolean isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> predicate) - Specified by:
isStateAtPositionin interfacenet.minecraft.world.level.LevelSimulatedReader- Overrides:
isStateAtPositionin classWrappedWorld
-
destroyBlock
public boolean destroyBlock(net.minecraft.core.BlockPos arg0, boolean arg1) - Specified by:
destroyBlockin interfacenet.minecraft.world.level.LevelWriter
-
removeBlock
public boolean removeBlock(net.minecraft.core.BlockPos arg0, boolean arg1) - Specified by:
removeBlockin interfacenet.minecraft.world.level.LevelWriter- Overrides:
removeBlockin 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 classWrappedWorld
-
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 classWrappedWorld
-
getBounds
public net.minecraft.world.level.levelgen.structure.BoundingBox getBounds() -
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:
getLevelin interfacenet.minecraft.world.level.ServerLevelAccessor- Overrides:
getLevelin classWrappedWorld
-