Class WrappedChunk
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
com.simibubi.create.foundation.utility.worldWrappers.chunk.WrappedChunk
- All Implemented Interfaces:
net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.chunk.FeatureAccess,net.minecraft.world.level.LevelHeightAccessor
public class WrappedChunk
extends net.minecraft.world.level.chunk.ChunkAccess
-
Nested Class Summary
Nested 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, noiseChunk, pendingBlockEntities, postProcessing, unsaved, upgradeData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(net.minecraft.world.entity.Entity p_76612_1_) voidaddReferenceForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, long arg1) Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,net.minecraft.world.level.levelgen.structure.StructureStart<?>> Set<net.minecraft.core.BlockPos>net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.nbt.CompoundTaggetBlockEntityNbt(net.minecraft.core.BlockPos p_201579_1_) net.minecraft.nbt.CompoundTaggetBlockEntityNbtForSaving(net.minecraft.core.BlockPos p_223134_1_) 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(net.minecraft.core.BlockPos p_204610_1_) net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid>intintgetHeight(net.minecraft.world.level.levelgen.Heightmap.Types p_201576_1_, int p_201576_2_, int p_201576_3_) Collection<Map.Entry<net.minecraft.world.level.levelgen.Heightmap.Types,net.minecraft.world.level.levelgen.Heightmap>> longStream<net.minecraft.core.BlockPos>intnet.minecraft.world.level.levelgen.HeightmapgetOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types p_217303_1_) it.unimi.dsi.fastutil.shorts.ShortList[]it.unimi.dsi.fastutil.longs.LongSetgetReferencesForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0) net.minecraft.world.level.chunk.LevelChunkSection[]net.minecraft.world.level.levelgen.structure.StructureStart<?>getStartForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0) net.minecraft.world.level.chunk.ChunkStatusnet.minecraft.world.level.chunk.ChunkAccess.TicksToSavenet.minecraft.world.level.chunk.UpgradeDatabooleanbooleanvoidremoveBlockEntity(net.minecraft.core.BlockPos p_177425_1_) voidsetAllReferences(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0) voidsetAllStarts(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>, net.minecraft.world.level.levelgen.structure.StructureStart<?>> p_201612_1_) voidsetBlockEntity(net.minecraft.world.level.block.entity.BlockEntity p_177426_2_) net.minecraft.world.level.block.state.BlockStatesetBlockState(net.minecraft.core.BlockPos p_177436_1_, net.minecraft.world.level.block.state.BlockState p_177436_2_, boolean p_177436_3_) voidsetHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types p_201607_1_, long[] p_201607_2_) voidsetInhabitedTime(long p_177415_1_) voidsetLightCorrect(boolean needsLight) voidsetStartForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, net.minecraft.world.level.levelgen.structure.StructureStart<?> arg1) voidsetUnsaved(boolean p_177427_1_) Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess
addPackedPostProcess, carverBiome, fillBiomesFromNoise, getBelowZeroRetrogen, getBlendingData, getEventDispatcher, getHeightAccessorForGeneration, getHighestSection, getHighestSectionPosition, getNoiseBiome, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getSection, getWorldForge, hasAnyStructureReferences, hasPrimedHeightmap, incrementInhabitedTime, isOldNoiseGeneration, isUpgrading, isYSpaceEmpty, markPosForPostprocessing, setBlendingData, setBlockEntityNbtMethods 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.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Constructor Details
-
WrappedChunk
-
-
Method Details
-
getLights
- Specified by:
getLightsin classnet.minecraft.world.level.chunk.ChunkAccess
-
getSections
public net.minecraft.world.level.chunk.LevelChunkSection[] getSections()- Overrides:
getSectionsin classnet.minecraft.world.level.chunk.ChunkAccess
-
getStatus
public net.minecraft.world.level.chunk.ChunkStatus getStatus()- Specified by:
getStatusin classnet.minecraft.world.level.chunk.ChunkAccess
-
setBlockState
@Nullable public net.minecraft.world.level.block.state.BlockState setBlockState(net.minecraft.core.BlockPos p_177436_1_, net.minecraft.world.level.block.state.BlockState p_177436_2_, boolean p_177436_3_) - Specified by:
setBlockStatein classnet.minecraft.world.level.chunk.ChunkAccess
-
setBlockEntity
public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity p_177426_2_) - Specified by:
setBlockEntityin classnet.minecraft.world.level.chunk.ChunkAccess
-
addEntity
public void addEntity(net.minecraft.world.entity.Entity p_76612_1_) - Specified by:
addEntityin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntitiesPos
- Overrides:
getBlockEntitiesPosin classnet.minecraft.world.level.chunk.ChunkAccess
-
getHeightmaps
public Collection<Map.Entry<net.minecraft.world.level.levelgen.Heightmap.Types,net.minecraft.world.level.levelgen.Heightmap>> getHeightmaps()- Overrides:
getHeightmapsin classnet.minecraft.world.level.chunk.ChunkAccess
-
setHeightmap
public void setHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types p_201607_1_, long[] p_201607_2_) - Overrides:
setHeightmapin classnet.minecraft.world.level.chunk.ChunkAccess
-
getOrCreateHeightmapUnprimed
public net.minecraft.world.level.levelgen.Heightmap getOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types p_217303_1_) - Overrides:
getOrCreateHeightmapUnprimedin classnet.minecraft.world.level.chunk.ChunkAccess
-
getHeight
public int getHeight(net.minecraft.world.level.levelgen.Heightmap.Types p_201576_1_, int p_201576_2_, int p_201576_3_) - Overrides:
getHeightin classnet.minecraft.world.level.chunk.ChunkAccess
-
setUnsaved
public void setUnsaved(boolean p_177427_1_) - Overrides:
setUnsavedin classnet.minecraft.world.level.chunk.ChunkAccess
-
isUnsaved
public boolean isUnsaved()- Overrides:
isUnsavedin classnet.minecraft.world.level.chunk.ChunkAccess
-
removeBlockEntity
public void removeBlockEntity(net.minecraft.core.BlockPos p_177425_1_) - Specified by:
removeBlockEntityin classnet.minecraft.world.level.chunk.ChunkAccess
-
getPostProcessing
public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()- Overrides:
getPostProcessingin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntityNbt
@Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbt(net.minecraft.core.BlockPos p_201579_1_) - Overrides:
getBlockEntityNbtin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntityNbtForSaving
@Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbtForSaving(net.minecraft.core.BlockPos p_223134_1_) - Specified by:
getBlockEntityNbtForSavingin classnet.minecraft.world.level.chunk.ChunkAccess
-
getUpgradeData
public net.minecraft.world.level.chunk.UpgradeData getUpgradeData()- Overrides:
getUpgradeDatain classnet.minecraft.world.level.chunk.ChunkAccess
-
setInhabitedTime
public void setInhabitedTime(long p_177415_1_) - Overrides:
setInhabitedTimein classnet.minecraft.world.level.chunk.ChunkAccess
-
getInhabitedTime
public long getInhabitedTime()- Overrides:
getInhabitedTimein classnet.minecraft.world.level.chunk.ChunkAccess
-
isLightCorrect
public boolean isLightCorrect()- Overrides:
isLightCorrectin classnet.minecraft.world.level.chunk.ChunkAccess
-
setLightCorrect
public void setLightCorrect(boolean needsLight) - Overrides:
setLightCorrectin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntity
@Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos) -
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos) -
getFluidState
public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos p_204610_1_) -
addReferenceForFeature
public void addReferenceForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, long arg1) - Specified by:
addReferenceForFeaturein interfacenet.minecraft.world.level.chunk.FeatureAccess- Overrides:
addReferenceForFeaturein classnet.minecraft.world.level.chunk.ChunkAccess
-
getAllReferences
public Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> getAllReferences()- Specified by:
getAllReferencesin interfacenet.minecraft.world.level.chunk.FeatureAccess- Overrides:
getAllReferencesin classnet.minecraft.world.level.chunk.ChunkAccess
-
getReferencesForFeature
public it.unimi.dsi.fastutil.longs.LongSet getReferencesForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0) - Specified by:
getReferencesForFeaturein interfacenet.minecraft.world.level.chunk.FeatureAccess- Overrides:
getReferencesForFeaturein classnet.minecraft.world.level.chunk.ChunkAccess
-
getStartForFeature
public net.minecraft.world.level.levelgen.structure.StructureStart<?> getStartForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0) - Specified by:
getStartForFeaturein interfacenet.minecraft.world.level.chunk.FeatureAccess- Overrides:
getStartForFeaturein classnet.minecraft.world.level.chunk.ChunkAccess
-
setAllReferences
public void setAllReferences(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0) - Specified by:
setAllReferencesin interfacenet.minecraft.world.level.chunk.FeatureAccess- Overrides:
setAllReferencesin classnet.minecraft.world.level.chunk.ChunkAccess
-
setStartForFeature
public void setStartForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, net.minecraft.world.level.levelgen.structure.StructureStart<?> arg1) - Specified by:
setStartForFeaturein interfacenet.minecraft.world.level.chunk.FeatureAccess- Overrides:
setStartForFeaturein classnet.minecraft.world.level.chunk.ChunkAccess
-
setAllStarts
public void setAllStarts(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>, net.minecraft.world.level.levelgen.structure.StructureStart<?>> p_201612_1_) - Overrides:
setAllStartsin classnet.minecraft.world.level.chunk.ChunkAccess
-
getAllStarts
public Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,net.minecraft.world.level.levelgen.structure.StructureStart<?>> getAllStarts()- Overrides:
getAllStartsin classnet.minecraft.world.level.chunk.ChunkAccess
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacenet.minecraft.world.level.LevelHeightAccessor- Overrides:
getHeightin classnet.minecraft.world.level.chunk.ChunkAccess
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor- Overrides:
getMinBuildHeightin classnet.minecraft.world.level.chunk.ChunkAccess
-
getFluidTicks
public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()- Specified by:
getFluidTicksin classnet.minecraft.world.level.chunk.ChunkAccess
-
getTicksForSerialization
public net.minecraft.world.level.chunk.ChunkAccess.TicksToSave getTicksForSerialization()- Specified by:
getTicksForSerializationin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockTicks
public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin classnet.minecraft.world.level.chunk.ChunkAccess
-