Class SchematicLevel
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.Level
net.createmod.catnip.levelWrappers.WrappedLevel
net.createmod.catnip.levelWrappers.SchematicLevel
- All Implemented Interfaces:
AutoCloseable,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,net.minecraft.world.level.SignalGetter,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension,net.neoforged.neoforge.common.extensions.IBlockGetterExtension,net.neoforged.neoforge.common.extensions.ILevelExtension,net.neoforged.neoforge.common.extensions.ILevelReaderExtension
- Direct Known Subclasses:
PonderLevel
public class SchematicLevel
extends WrappedLevel
implements net.minecraft.world.level.ServerLevelAccessor, SchematicLevelAccessor
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.Level
net.minecraft.world.level.Level.ExplosionInteractionNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.core.BlockPosprotected Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.entity.BlockEntity> protected 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> booleanFields inherited from class net.createmod.catnip.levelWrappers.WrappedLevel
chunkSource, entityGetter, levelFields 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, neighborUpdater, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAYFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
TRANSLATION_PREFIXFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsConstructorDescriptionSchematicLevel(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original) SchematicLevel(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.core.Holder<net.minecraft.world.level.biome.Biome> getBiome(net.minecraft.core.BlockPos pos) Iterable<net.minecraft.world.level.block.entity.BlockEntity> 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 lightLayer, net.minecraft.core.BlockPos pos) 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) List<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> floatgetShade(net.minecraft.core.Direction face, boolean hasShade) intbooleanisStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> predicate) protected voidonBEadded(net.minecraft.world.level.block.entity.BlockEntity blockEntity, 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) voidsetBounds(net.minecraft.world.level.levelgen.structure.BoundingBox bounds) Methods inherited from class net.createmod.catnip.levelWrappers.WrappedLevel
destroyBlockProgress, enabledFeatures, gameEvent, gameEvent, gatherChunkSourceStats, getChunkSource, getDayTimeFraction, getDayTimePerTick, getEntities, getEntity, getFreeMapId, getLightEngine, getMapData, getMaxBuildHeight, getMaxLocalRawBrightness, getMaxSection, getMinSection, getRecipeManager, getScoreboard, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, getUncachedNoiseBiome, isOutsideBuildHeight, isOutsideBuildHeight, levelEvent, playSeededSound, playSeededSound, playSound, playSound, potionBrewing, registryAccess, setChunkSource, setDayTimeFraction, setDayTimePerTick, setMapData, tickRateManager, updateNeighbourForOutputSignalMethods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, addParticle, advanceDaytime, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, createFireworks, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, disconnect, explode, explode, explode, explode, explode, explode, fillReportDetails, getBiomeManager, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getGameRules, getGameTime, getHeight, getLevelData, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playLocalSound, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, prepareWeather, removeBlockEntity, sendPacketToServer, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSkyBrightnessMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, removeData, serializeAttachments, setDataMethods 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, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods 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.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShadeMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, getModelDataManager, getPartEntities, invalidateCapabilities, invalidateCapabilitiesMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelAccessor
addParticle, blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, gameEvent, getChunkSource, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, getServer, hasChunk, levelEvent, levelEvent, neighborShapeChanged, nextSubTickCount, playSound, 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, enabledFeatures, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccessMethods 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
addFreshEntityWithPassengersMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Field Details
-
blocks
-
blockEntities
protected Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.entity.BlockEntity> blockEntities -
renderedBlockEntities
-
entities
-
bounds
protected net.minecraft.world.level.levelgen.structure.BoundingBox bounds -
anchor
public net.minecraft.core.BlockPos anchor -
renderMode
public boolean renderMode
-
-
Constructor Details
-
SchematicLevel
public SchematicLevel(net.minecraft.world.level.Level original) -
SchematicLevel
public SchematicLevel(net.minecraft.core.BlockPos anchor, net.minecraft.world.level.Level original)
-
-
Method Details
-
getAllPositions
- Specified by:
getAllPositionsin interfaceSchematicLevelAccessor
-
addFreshEntity
public boolean addFreshEntity(net.minecraft.world.entity.Entity entityIn) - Specified by:
addFreshEntityin interfacenet.minecraft.world.level.LevelWriter- Overrides:
addFreshEntityin classWrappedLevel
-
getEntityList
- Specified by:
getEntityListin interfaceSchematicLevelAccessor
-
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 classWrappedLevel
-
onBEadded
protected void onBEadded(net.minecraft.world.level.block.entity.BlockEntity blockEntity, 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 classWrappedLevel
-
getBlockMap
public Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> getBlockMap()- Specified by:
getBlockMapin interfaceSchematicLevelAccessor
-
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.core.Holder<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 lightLayer, net.minecraft.core.BlockPos pos) - Specified by:
getBrightnessin interfacenet.minecraft.world.level.BlockAndTintGetter
-
getShade
public float getShade(net.minecraft.core.Direction face, boolean hasShade) - Specified by:
getShadein interfacenet.minecraft.world.level.BlockAndTintGetter- Overrides:
getShadein classWrappedLevel
-
getBlockTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
getBlockTicksin classWrappedLevel
-
getFluidTicks
public net.minecraft.world.ticks.LevelTickAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()- Specified by:
getFluidTicksin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
getFluidTicksin classWrappedLevel
-
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 classWrappedLevel
-
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 classWrappedLevel
-
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 classWrappedLevel
-
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 classWrappedLevel
-
getBounds
public net.minecraft.world.level.levelgen.structure.BoundingBox getBounds()- Specified by:
getBoundsin interfaceSchematicLevelAccessor
-
setBounds
public void setBounds(net.minecraft.world.level.levelgen.structure.BoundingBox bounds) - Specified by:
setBoundsin interfaceSchematicLevelAccessor
-
getBlockEntities
- Specified by:
getBlockEntitiesin interfaceSchematicLevelAccessor
-
getRenderedBlockEntities
- Specified by:
getRenderedBlockEntitiesin interfaceSchematicLevelAccessor
-
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 classWrappedLevel
-