Package net.minecraft.world.chunk
Class EmptyChunk
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<Chunk>
-
- net.minecraft.world.chunk.Chunk
-
- net.minecraft.world.chunk.EmptyChunk
-
- All Implemented Interfaces:
IChunk
,IBlockReader
,IStructureReader
,ICapabilityProvider
,IForgeChunk
public class EmptyChunk extends Chunk
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.chunk.Chunk
Chunk.CreateEntityType
-
-
Field Summary
Fields Modifier and Type Field Description private static Biome[]
BIOMES
-
Fields inherited from class net.minecraft.world.chunk.Chunk
EMPTY_SECTION
-
-
Constructor Summary
Constructors Constructor Description EmptyChunk(World p_i49950_1_, ChunkPos p_i49950_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBlockEntity(TileEntity p_150813_1_)
void
addEntity(Entity p_76612_1_)
TileEntity
getBlockEntity(BlockPos p_177424_1_, Chunk.CreateEntityType p_177424_2_)
BlockState
getBlockState(BlockPos p_180495_1_)
void
getEntities(Entity p_177414_1_, AxisAlignedBB p_177414_2_, java.util.List<Entity> p_177414_3_, java.util.function.Predicate<? super Entity> p_177414_4_)
<T extends Entity>
voidgetEntitiesOfClass(java.lang.Class<? extends T> p_177430_1_, AxisAlignedBB p_177430_2_, java.util.List<T> p_177430_3_, java.util.function.Predicate<? super T> p_177430_4_)
FluidState
getFluidState(BlockPos p_204610_1_)
ChunkHolder.LocationType
getFullStatus()
int
getLightEmission(BlockPos p_217298_1_)
WorldLightManager
getLightEngine()
boolean
isEmpty()
boolean
isYSpaceEmpty(int p_76606_1_, int p_76606_2_)
void
markUnsaved()
void
removeBlockEntity(BlockPos p_177425_1_)
void
removeEntity(Entity p_76622_1_)
void
removeEntity(Entity p_76608_1_, int p_76608_2_)
void
setBlockEntity(BlockPos p_177426_1_, TileEntity p_177426_2_)
BlockState
setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_)
-
Methods inherited from class net.minecraft.world.chunk.Chunk
addReferenceForFeature, getAllReferences, getAllStarts, getBiomes, getBlockEntities, getBlockEntitiesPos, getBlockEntity, getBlockEntityNbt, getBlockEntityNbtForSaving, getBlockTicks, getEntities, getEntitySections, getFluidState, getHeight, getHeightmaps, getInhabitedTime, getLevel, getLights, getLiquidTicks, getOrCreateHeightmapUnprimed, getPos, getPostProcessing, getReferencesForFeature, getSections, getStartForFeature, getStatus, getUpgradeData, getWorldForge, isLightCorrect, isUnsaved, packTicks, postProcessGeneration, readCapsFromNBT, replaceWithPacketData, runPostLoad, setAllReferences, setAllStarts, setBlockEntityNbt, setFullStatus, setHeightmap, setInhabitedTime, setLastSaveHadEntities, setLastSaveTime, setLightCorrect, setLoaded, setStartForFeature, setUnsaved, unpackTicks, writeCapsToNBT
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getMaxBuildHeight, getMaxLightLevel
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Methods inherited from interface net.minecraft.world.chunk.IChunk
addPackedPostProcess, getHighestSection, getHighestSectionPosition, markPosForPostprocessing
-
-
-
-
Field Detail
-
BIOMES
private static final Biome[] BIOMES
-
-
Method Detail
-
getBlockState
public BlockState getBlockState(BlockPos p_180495_1_)
- Specified by:
getBlockState
in interfaceIBlockReader
- Overrides:
getBlockState
in classChunk
-
setBlockState
@Nullable public BlockState setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_)
- Specified by:
setBlockState
in interfaceIChunk
- Overrides:
setBlockState
in classChunk
-
getFluidState
public FluidState getFluidState(BlockPos p_204610_1_)
- Specified by:
getFluidState
in interfaceIBlockReader
- Overrides:
getFluidState
in classChunk
-
getLightEngine
@Nullable public WorldLightManager getLightEngine()
- Overrides:
getLightEngine
in classChunk
-
getLightEmission
public int getLightEmission(BlockPos p_217298_1_)
-
addEntity
public void addEntity(Entity p_76612_1_)
-
removeEntity
public void removeEntity(Entity p_76622_1_)
- Overrides:
removeEntity
in classChunk
-
removeEntity
public void removeEntity(Entity p_76608_1_, int p_76608_2_)
- Overrides:
removeEntity
in classChunk
-
getBlockEntity
@Nullable public TileEntity getBlockEntity(BlockPos p_177424_1_, Chunk.CreateEntityType p_177424_2_)
- Overrides:
getBlockEntity
in classChunk
-
addBlockEntity
public void addBlockEntity(TileEntity p_150813_1_)
- Overrides:
addBlockEntity
in classChunk
-
setBlockEntity
public void setBlockEntity(BlockPos p_177426_1_, TileEntity p_177426_2_)
- Specified by:
setBlockEntity
in interfaceIChunk
- Overrides:
setBlockEntity
in classChunk
-
removeBlockEntity
public void removeBlockEntity(BlockPos p_177425_1_)
- Specified by:
removeBlockEntity
in interfaceIChunk
- Overrides:
removeBlockEntity
in classChunk
-
markUnsaved
public void markUnsaved()
- Overrides:
markUnsaved
in classChunk
-
getEntities
public void getEntities(@Nullable Entity p_177414_1_, AxisAlignedBB p_177414_2_, java.util.List<Entity> p_177414_3_, java.util.function.Predicate<? super Entity> p_177414_4_)
- Overrides:
getEntities
in classChunk
-
getEntitiesOfClass
public <T extends Entity> void getEntitiesOfClass(java.lang.Class<? extends T> p_177430_1_, AxisAlignedBB p_177430_2_, java.util.List<T> p_177430_3_, java.util.function.Predicate<? super T> p_177430_4_)
- Overrides:
getEntitiesOfClass
in classChunk
-
isYSpaceEmpty
public boolean isYSpaceEmpty(int p_76606_1_, int p_76606_2_)
-
getFullStatus
public ChunkHolder.LocationType getFullStatus()
- Overrides:
getFullStatus
in classChunk
-
-