Class WrappedChunk
java.lang.Object
com.simibubi.create.foundation.utility.worldWrappers.chunk.WrappedChunk
- All Implemented Interfaces:
net.minecraft.world.level.BlockGetter,net.minecraft.world.level.chunk.ChunkAccess,net.minecraft.world.level.chunk.FeatureAccess,net.minecraft.world.level.LevelHeightAccessor
-
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<?>>net.minecraft.world.level.chunk.ChunkBiomeContainerSet<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.level.TickList<net.minecraft.world.level.block.Block>net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos p_204610_1_)net.minecraft.core.BlockPosgetHeighestPosition(net.minecraft.world.level.levelgen.Heightmap.Types pType)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>net.minecraft.world.level.TickList<net.minecraft.world.level.material.Fluid>intnet.minecraft.world.level.levelgen.HeightmapgetOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types p_217303_1_)net.minecraft.world.level.ChunkPosgetPos()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.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 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.chunk.ChunkAccess
addPackedPostProcess, getEventDispatcher, getHighestSection, getHighestSectionPosition, getOrCreateSection, getWorldForge, isYSpaceEmpty, markPosForPostprocessing, setBlockEntityNbtMethods 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 interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getSections
public net.minecraft.world.level.chunk.LevelChunkSection[] getSections()- Specified by:
getSectionsin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getStatus
public net.minecraft.world.level.chunk.ChunkStatus getStatus()- Specified by:
getStatusin interfacenet.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 interfacenet.minecraft.world.level.chunk.ChunkAccess
-
setBlockEntity
public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity p_177426_2_)- Specified by:
setBlockEntityin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
addEntity
public void addEntity(net.minecraft.world.entity.Entity p_76612_1_)- Specified by:
addEntityin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntitiesPos
- Specified by:
getBlockEntitiesPosin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getHeightmaps
public Collection<Map.Entry<net.minecraft.world.level.levelgen.Heightmap.Types,net.minecraft.world.level.levelgen.Heightmap>> getHeightmaps()- Specified by:
getHeightmapsin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
setHeightmap
public void setHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types p_201607_1_, long[] p_201607_2_)- Specified by:
setHeightmapin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getOrCreateHeightmapUnprimed
public net.minecraft.world.level.levelgen.Heightmap getOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types p_217303_1_)- Specified by:
getOrCreateHeightmapUnprimedin interfacenet.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_)- Specified by:
getHeightin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getPos
public net.minecraft.world.level.ChunkPos getPos()- Specified by:
getPosin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getBiomes
@Nullable public net.minecraft.world.level.chunk.ChunkBiomeContainer getBiomes()- Specified by:
getBiomesin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
setUnsaved
public void setUnsaved(boolean p_177427_1_)- Specified by:
setUnsavedin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
isUnsaved
public boolean isUnsaved()- Specified by:
isUnsavedin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
removeBlockEntity
public void removeBlockEntity(net.minecraft.core.BlockPos p_177425_1_)- Specified by:
removeBlockEntityin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getPostProcessing
public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()- Specified by:
getPostProcessingin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntityNbt
@Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbt(net.minecraft.core.BlockPos p_201579_1_)- Specified by:
getBlockEntityNbtin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntityNbtForSaving
@Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbtForSaving(net.minecraft.core.BlockPos p_223134_1_)- Specified by:
getBlockEntityNbtForSavingin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getBlockTicks
public net.minecraft.world.level.TickList<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getLiquidTicks
public net.minecraft.world.level.TickList<net.minecraft.world.level.material.Fluid> getLiquidTicks()- Specified by:
getLiquidTicksin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getUpgradeData
public net.minecraft.world.level.chunk.UpgradeData getUpgradeData()- Specified by:
getUpgradeDatain interfacenet.minecraft.world.level.chunk.ChunkAccess
-
setInhabitedTime
public void setInhabitedTime(long p_177415_1_)- Specified by:
setInhabitedTimein interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getInhabitedTime
public long getInhabitedTime()- Specified by:
getInhabitedTimein interfacenet.minecraft.world.level.chunk.ChunkAccess
-
isLightCorrect
public boolean isLightCorrect()- Specified by:
isLightCorrectin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
setLightCorrect
public void setLightCorrect(boolean needsLight)- Specified by:
setLightCorrectin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntity
@Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)- Specified by:
getBlockEntityin interfacenet.minecraft.world.level.BlockGetter
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos)- Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter
-
getFluidState
public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos p_204610_1_)- Specified by:
getFluidStatein interfacenet.minecraft.world.level.BlockGetter
-
addReferenceForFeature
public void addReferenceForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, long arg1)- Specified by:
addReferenceForFeaturein interfacenet.minecraft.world.level.chunk.FeatureAccess
-
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
-
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
-
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
-
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
-
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
-
setAllStarts
public void setAllStarts(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,net.minecraft.world.level.levelgen.structure.StructureStart<?>> p_201612_1_)- Specified by:
setAllStartsin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getAllStarts
public Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,net.minecraft.world.level.levelgen.structure.StructureStart<?>> getAllStarts()- Specified by:
getAllStartsin interfacenet.minecraft.world.level.chunk.ChunkAccess
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getHeighestPosition
public net.minecraft.core.BlockPos getHeighestPosition(net.minecraft.world.level.levelgen.Heightmap.Types pType)- Specified by:
getHeighestPositionin interfacenet.minecraft.world.level.chunk.ChunkAccess
-