Package net.neoforged.neoforge.client
Interface IRenderableSection
public interface IRenderableSection
Describes a chunk section that may be rendered on the GPU.
The renderer may choose to reuse a common backing object
for this interface under the hood (for performance reasons),
so the
IRenderableSection
and any objects its methods
return are not guaranteed to be immutable or valid after
exiting the scope in which its provided.-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.AABB
Returns the bounding box of the section.net.minecraft.core.BlockPos
Returns the block position at the origin of the section.boolean
isEmpty()
Returns true if the compiled section contains no chunk render layers.
-
Method Details
-
getRenderOrigin
net.minecraft.core.BlockPos getRenderOrigin()Returns the block position at the origin of the section.- Returns:
- the block position at the origin of the section
-
getBoundingBox
net.minecraft.world.phys.AABB getBoundingBox()Returns the bounding box of the section.- Returns:
- the bounding box of the section
-
isEmpty
boolean isEmpty()Returns true if the compiled section contains no chunk render layers.- Returns:
- true if the compiled section contains no chunk render layers
-