public class Chunk extends CapabilityProvider<Chunk> implements IChunk, IForgeChunk
| 修飾子とタイプ | クラスと説明 | 
|---|---|
| static class  | Chunk.CreateEntityType | 
| 修飾子とタイプ | フィールドと説明 | 
|---|---|
| static ChunkSection | EMPTY_SECTION | 
| コンストラクタと説明 | 
|---|
| Chunk(World worldIn,
     ChunkPos chunkPosIn,
     BiomeContainer biomeContainerIn) | 
| Chunk(World worldIn,
     ChunkPos chunkPosIn,
     BiomeContainer biomeContainerIn,
     UpgradeData upgradeDataIn,
     ITickList<Block> tickBlocksIn,
     ITickList<Fluid> tickFluidsIn,
     long inhabitedTimeIn,
     ChunkSection[] sectionsIn,
     java.util.function.Consumer<Chunk> postLoadConsumerIn) | 
| Chunk(World worldIn,
     ChunkPrimer p_i49947_2_) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | addEntity(Entity entityIn)Adds an entity to the chunk. | 
| void | addStructureReference(java.lang.String strucutre,
                     long reference) | 
| void | addTileEntity(BlockPos pos,
             TileEntity tileEntityIn) | 
| void | addTileEntity(CompoundNBT nbt) | 
| void | addTileEntity(TileEntity tileEntityIn) | 
| BiomeContainer | getBiomes() | 
| BlockState | getBlockState(BlockPos pos) | 
| ITickList<Block> | getBlocksToBeTicked() | 
| CompoundNBT | getDeferredTileEntity(BlockPos pos) | 
| <T extends Entity> | getEntitiesOfTypeWithinAABB(java.lang.Class<? extends T> entityClass,
                           AxisAlignedBB aabb,
                           java.util.List<T> listToFill,
                           java.util.function.Predicate<? super T> filter)Gets all entities that can be assigned to the specified class. | 
| void | getEntitiesWithinAABBForEntity(Entity entityIn,
                              AxisAlignedBB aabb,
                              java.util.List<Entity> listToFill,
                              java.util.function.Predicate<? super Entity> filter)Fills the given list of all entities that intersect within the given bounding box that aren't the passed entity. | 
| <T extends Entity> | getEntitiesWithinAABBForList(EntityType<?> entitytypeIn,
                            AxisAlignedBB aabb,
                            java.util.List<? super T> list,
                            java.util.function.Predicate<? super T> filter)Fills the given list of all entities that are specific EntityType and intersects within the given bounding box. | 
| ClassInheritanceMultiMap<Entity>[] | getEntityLists() | 
| IFluidState | getFluidState(BlockPos pos) | 
| IFluidState | getFluidState(int bx,
             int by,
             int bz) | 
| ITickList<Fluid> | getFluidsToBeTicked() | 
| Heightmap | getHeightmap(Heightmap.Type typeIn) | 
| java.util.Collection<java.util.Map.Entry<Heightmap.Type,Heightmap>> | getHeightmaps() | 
| long | getInhabitedTime() | 
| java.util.stream.Stream<BlockPos> | getLightSources() | 
| ChunkHolder.LocationType | getLocationType() | 
| it.unimi.dsi.fastutil.shorts.ShortList[] | getPackedPositions() | 
| ChunkPos | getPos()Gets a  ChunkPosrepresenting the x and z coordinates of this chunk. | 
| ChunkSection[] | getSections()Returns the ExtendedBlockStorage array for this Chunk. | 
| ChunkStatus | getStatus() | 
| java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> | getStructureReferences() | 
| it.unimi.dsi.fastutil.longs.LongSet | getStructureReferences(java.lang.String structureIn) | 
| StructureStart | getStructureStart(java.lang.String stucture) | 
| java.util.Map<java.lang.String,StructureStart> | getStructureStarts() | 
| java.util.Set<BlockPos> | getTileEntitiesPos() | 
| TileEntity | getTileEntity(BlockPos pos) | 
| TileEntity | getTileEntity(BlockPos pos,
             Chunk.CreateEntityType creationMode) | 
| java.util.Map<BlockPos,TileEntity> | getTileEntityMap() | 
| CompoundNBT | getTileEntityNBT(BlockPos pos) | 
| int | getTopBlockY(Heightmap.Type heightmapType,
            int x,
            int z) | 
| UpgradeData | getUpgradeData() | 
| World | getWorld() | 
| World | getWorldForge() | 
| WorldLightManager | getWorldLightManager() | 
| boolean | hasLight() | 
| boolean | isEmpty() | 
| boolean | isModified() | 
| void | markDirty()Sets the isModified flag for this Chunk | 
| void | postLoad() | 
| void | postProcess() | 
| void | putStructureStart(java.lang.String structureIn,
                 StructureStart structureStartIn) | 
| void | read(BiomeContainer biomeContainerIn,
    PacketBuffer packetBufferIn,
    CompoundNBT nbtIn,
    int availableSections) | 
| void | readCapsFromNBT(CompoundNBT tag)非推奨です。  | 
| void | removeEntity(Entity entityIn)removes entity using its y chunk coordinate as its index | 
| void | removeEntityAtIndex(Entity entityIn,
                   int index)Removes entity at the specified index from the entity array. | 
| void | removeTileEntity(BlockPos pos) | 
| void | rescheduleTicks()Reschedule all serialized scheduled ticks this chunk had | 
| void | saveScheduledTicks(ServerWorld serverWorldIn)Remove scheduled ticks belonging to this chunk from the world and keep it locally for incoming serialization | 
| BlockState | setBlockState(BlockPos pos,
             BlockState state,
             boolean isMoving) | 
| void | setHasEntities(boolean hasEntitiesIn) | 
| void | setHeightmap(Heightmap.Type type,
            long[] data) | 
| void | setInhabitedTime(long newInhabitedTime) | 
| void | setLastSaveTime(long saveTime) | 
| void | setLight(boolean lightCorrectIn) | 
| void | setLoaded(boolean loaded) | 
| void | setLocationType(java.util.function.Supplier<ChunkHolder.LocationType> locationTypeIn) | 
| void | setModified(boolean modified) | 
| void | setStructureReferences(java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> p_201606_1_) | 
| void | setStructureStarts(java.util.Map<java.lang.String,StructureStart> structureStartsIn) | 
| CompoundNBT | writeCapsToNBT()非推奨です。  | 
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_201636_b, getCarvingMask, getLastExtendedBlockStorage, getList, getTopFilledSegment, isEmptyBetween, markBlockForPostprocessingfunc_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocksgetCapability, getCapabilitypublic static final ChunkSection EMPTY_SECTION
public Chunk(World worldIn, ChunkPos chunkPosIn, BiomeContainer biomeContainerIn)
public Chunk(World worldIn, ChunkPos chunkPosIn, BiomeContainer biomeContainerIn, UpgradeData upgradeDataIn, ITickList<Block> tickBlocksIn, ITickList<Fluid> tickFluidsIn, long inhabitedTimeIn, @Nullable ChunkSection[] sectionsIn, @Nullable java.util.function.Consumer<Chunk> postLoadConsumerIn)
public Chunk(World worldIn, ChunkPrimer p_i49947_2_)
public Heightmap getHeightmap(Heightmap.Type typeIn)
getHeightmap インタフェース内 IChunkpublic java.util.Set<BlockPos> getTileEntitiesPos()
getTileEntitiesPos インタフェース内 IChunkpublic ChunkSection[] getSections()
getSections インタフェース内 IChunkpublic BlockState getBlockState(BlockPos pos)
getBlockState インタフェース内 IBlockReaderpublic IFluidState getFluidState(BlockPos pos)
getFluidState インタフェース内 IBlockReaderpublic IFluidState getFluidState(int bx, int by, int bz)
@Nullable public BlockState setBlockState(BlockPos pos, BlockState state, boolean isMoving)
setBlockState インタフェース内 IChunk@Nullable public WorldLightManager getWorldLightManager()
public void addEntity(Entity entityIn)
public void setHeightmap(Heightmap.Type type, long[] data)
setHeightmap インタフェース内 IChunkpublic void removeEntity(Entity entityIn)
public void removeEntityAtIndex(Entity entityIn, int index)
public int getTopBlockY(Heightmap.Type heightmapType, int x, int z)
getTopBlockY インタフェース内 IChunk@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity インタフェース内 IBlockReader@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.CreateEntityType creationMode)
public void addTileEntity(TileEntity tileEntityIn)
public void addTileEntity(BlockPos pos, TileEntity tileEntityIn)
addTileEntity インタフェース内 IChunkpublic void addTileEntity(CompoundNBT nbt)
addTileEntity インタフェース内 IChunk@Nullable public CompoundNBT getTileEntityNBT(BlockPos pos)
getTileEntityNBT インタフェース内 IChunkpublic void removeTileEntity(BlockPos pos)
removeTileEntity インタフェース内 IChunkpublic void postLoad()
public void markDirty()
public void getEntitiesWithinAABBForEntity(@Nullable
                                           Entity entityIn,
                                           AxisAlignedBB aabb,
                                           java.util.List<Entity> listToFill,
                                           @Nullable
                                           java.util.function.Predicate<? super Entity> filter)
public <T extends Entity> void getEntitiesWithinAABBForList(@Nullable EntityType<?> entitytypeIn, AxisAlignedBB aabb, java.util.List<? super T> list, java.util.function.Predicate<? super T> filter)
public <T extends Entity> void getEntitiesOfTypeWithinAABB(java.lang.Class<? extends T> entityClass, AxisAlignedBB aabb, java.util.List<T> listToFill, @Nullable java.util.function.Predicate<? super T> filter)
public boolean isEmpty()
public void read(@Nullable
                 BiomeContainer biomeContainerIn,
                 PacketBuffer packetBufferIn,
                 CompoundNBT nbtIn,
                 int availableSections)
public BiomeContainer getBiomes()
public void setLoaded(boolean loaded)
public World getWorld()
public java.util.Collection<java.util.Map.Entry<Heightmap.Type,Heightmap>> getHeightmaps()
getHeightmaps インタフェース内 IChunkpublic java.util.Map<BlockPos,TileEntity> getTileEntityMap()
public ClassInheritanceMultiMap<Entity>[] getEntityLists()
public CompoundNBT getDeferredTileEntity(BlockPos pos)
getDeferredTileEntity インタフェース内 IChunkpublic java.util.stream.Stream<BlockPos> getLightSources()
getLightSources インタフェース内 IChunkpublic ITickList<Block> getBlocksToBeTicked()
getBlocksToBeTicked インタフェース内 IChunkpublic ITickList<Fluid> getFluidsToBeTicked()
getFluidsToBeTicked インタフェース内 IChunkpublic void setModified(boolean modified)
setModified インタフェース内 IChunkpublic boolean isModified()
isModified インタフェース内 IChunkpublic void setHasEntities(boolean hasEntitiesIn)
public void setLastSaveTime(long saveTime)
setLastSaveTime インタフェース内 IChunk@Nullable public StructureStart getStructureStart(java.lang.String stucture)
getStructureStart インタフェース内 IStructureReaderpublic void putStructureStart(java.lang.String structureIn,
                              StructureStart structureStartIn)
putStructureStart インタフェース内 IStructureReaderpublic java.util.Map<java.lang.String,StructureStart> getStructureStarts()
getStructureStarts インタフェース内 IChunkpublic void setStructureStarts(java.util.Map<java.lang.String,StructureStart> structureStartsIn)
setStructureStarts インタフェース内 IChunkpublic it.unimi.dsi.fastutil.longs.LongSet getStructureReferences(java.lang.String structureIn)
getStructureReferences インタフェース内 IStructureReaderpublic void addStructureReference(java.lang.String strucutre,
                                  long reference)
addStructureReference インタフェース内 IStructureReaderpublic java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> getStructureReferences()
getStructureReferences インタフェース内 IStructureReaderpublic void setStructureReferences(java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> p_201606_1_)
setStructureReferences インタフェース内 IStructureReaderpublic long getInhabitedTime()
getInhabitedTime インタフェース内 IChunkpublic void setInhabitedTime(long newInhabitedTime)
setInhabitedTime インタフェース内 IChunkpublic void postProcess()
public UpgradeData getUpgradeData()
getUpgradeData インタフェース内 IChunkpublic it.unimi.dsi.fastutil.shorts.ShortList[] getPackedPositions()
getPackedPositions インタフェース内 IChunkpublic void rescheduleTicks()
public void saveScheduledTicks(ServerWorld serverWorldIn)
public ChunkStatus getStatus()
public ChunkHolder.LocationType getLocationType()
public void setLocationType(java.util.function.Supplier<ChunkHolder.LocationType> locationTypeIn)
@Deprecated @Nullable public final CompoundNBT writeCapsToNBT()
 Only public for use in AnvilChunkLoader.
@Deprecated public final void readCapsFromNBT(CompoundNBT tag)
 Only public for use in AnvilChunkLoader.
public World getWorldForge()
getWorldForge インタフェース内 IChunk