Package net.jcm.vsch.util
Class EmptyChunkAccess
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.LevelChunk
net.jcm.vsch.util.EmptyChunkAccess
- All Implemented Interfaces:
net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.chunk.LightChunk,net.minecraft.world.level.chunk.StructureAccess,net.minecraft.world.level.LevelHeightAccessor,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.chunk.LevelChunk>,net.minecraftforge.common.extensions.IForgeBlockGetter
public class EmptyChunkAccess
extends net.minecraft.world.level.chunk.LevelChunk
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.LevelChunk
net.minecraft.world.level.chunk.LevelChunk.EntityCreationType, net.minecraft.world.level.chunk.LevelChunk.PostLoadProcessorNested classes/interfaces inherited from class net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.ChunkAccess.TicksToSave -
Field Summary
Fields inherited from class net.minecraft.world.level.chunk.ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, unsaved, upgradeData -
Constructor Summary
ConstructorsConstructorDescriptionEmptyChunkAccess(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos pos) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(net.minecraft.world.entity.Entity entity) net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.nbt.CompoundTaggetBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.block.Block>net.minecraft.world.level.material.FluidStategetFluidState(int x, int y, int z) net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid>net.minecraft.world.level.chunk.ChunkStatusnet.minecraft.world.level.chunk.ChunkAccess.TicksToSavevoidremoveBlockEntity(net.minecraft.core.BlockPos pos) voidsetBlockEntity(net.minecraft.world.level.block.entity.BlockEntity be) net.minecraft.world.level.block.state.BlockStatesetBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean isMoving) static booleanshouldUseEmptyChunk(net.minecraft.world.level.Level level, int x, int z) Methods inherited from class net.minecraft.world.level.chunk.LevelChunk
addAndRegisterBlockEntity, areCapsCompatible, areCapsCompatible, clearAllBlockEntities, getBlockEntities, getBlockEntity, getCapability, getFullStatus, getLevel, getListenerRegistry, getWorldForge, invalidateCaps, isEmpty, postProcessGeneration, readCapsFromNBT, registerAllBlockEntitiesAfterLevelLoad, registerTickContainerInLevel, replaceBiomes, replaceWithPacketData, reviveCaps, runPostLoad, setFullStatus, setLoaded, unpackTicks, unregisterTickContainerFromLevel, writeCapsToNBTMethods inherited from class net.minecraft.world.level.chunk.ChunkAccess
addPackedPostProcess, addReferenceForStructure, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, getAllReferences, getAllStarts, getBelowZeroRetrogen, getBlendingData, getBlockEntitiesPos, getBlockEntityNbt, getHeight, getHeight, getHeightAccessorForGeneration, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getMinBuildHeight, getNoiseBiome, getOrCreateHeightmapUnprimed, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getPostProcessing, getReferencesForStructure, getSection, getSections, getSkyLightSources, getStartForStructure, getUpgradeData, hasAnyStructureReferences, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isLightCorrect, isOldNoiseGeneration, isUnsaved, isUpgrading, isYSpaceEmpty, markPosForPostprocessing, setAllReferences, setAllStarts, setBlendingData, setBlockEntityNbt, setHeightmap, setInhabitedTime, setLightCorrect, setStartForStructure, setUnsavedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManagerMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Constructor Details
-
EmptyChunkAccess
public EmptyChunkAccess(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos pos)
-
-
Method Details
-
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 classnet.minecraft.world.level.chunk.LevelChunk
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos) - Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter- Overrides:
getBlockStatein classnet.minecraft.world.level.chunk.LevelChunk
-
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.chunk.LevelChunk
-
getFluidState
public net.minecraft.world.level.material.FluidState getFluidState(int x, int y, int z) - Overrides:
getFluidStatein classnet.minecraft.world.level.chunk.LevelChunk
-
setBlockState
public net.minecraft.world.level.block.state.BlockState setBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean isMoving) - Overrides:
setBlockStatein classnet.minecraft.world.level.chunk.LevelChunk
-
setBlockEntity
public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity be) - Overrides:
setBlockEntityin classnet.minecraft.world.level.chunk.LevelChunk
-
addEntity
public void addEntity(net.minecraft.world.entity.Entity entity) - Overrides:
addEntityin classnet.minecraft.world.level.chunk.LevelChunk
-
getStatus
public net.minecraft.world.level.chunk.ChunkStatus getStatus()- Overrides:
getStatusin classnet.minecraft.world.level.chunk.LevelChunk
-
removeBlockEntity
public void removeBlockEntity(net.minecraft.core.BlockPos pos) - Overrides:
removeBlockEntityin classnet.minecraft.world.level.chunk.LevelChunk
-
getBlockEntityNbtForSaving
public net.minecraft.nbt.CompoundTag getBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos) - Overrides:
getBlockEntityNbtForSavingin classnet.minecraft.world.level.chunk.LevelChunk
-
getBlockTicks
public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.block.Block> getBlockTicks()- Overrides:
getBlockTicksin classnet.minecraft.world.level.chunk.LevelChunk
-
getFluidTicks
public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()- Overrides:
getFluidTicksin classnet.minecraft.world.level.chunk.LevelChunk
-
getTicksForSerialization
public net.minecraft.world.level.chunk.ChunkAccess.TicksToSave getTicksForSerialization()- Overrides:
getTicksForSerializationin classnet.minecraft.world.level.chunk.LevelChunk
-
shouldUseEmptyChunk
public static boolean shouldUseEmptyChunk(net.minecraft.world.level.Level level, int x, int z)
-