Package de.z0rdak.yawp.core.area
Interface IMarkableArea
- All Known Implementing Classes:
CenteredArea,CuboidArea,MarkedArea,Polygon3DArea,PrismArea,SphereArea,VerticalCylinderArea
public interface IMarkableArea
IMarkableArea provides an interface for different types of areas.
The most basic area would be a simple AxisAlignedBB.
This type of mark-able area is already implemented in the class CuboidArea.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(net.minecraft.core.BlockPos pos) booleancontainsOther(IMarkableArea other) Set<net.minecraft.core.BlockPos> getFrame()Set containing all block positions which represent the outer frame of the marked area.Set<net.minecraft.core.BlockPos> getHull()Set containing all block positions which represent the outer hull of the marked area.Set<net.minecraft.core.BlockPos> getType()booleanintersects(IMarkableArea other) Set<net.minecraft.core.BlockPos> voidupdateDisplay(BlockDisplayProperties properties)
-
Method Details
-
contains
boolean contains(net.minecraft.core.BlockPos pos) -
getAreaType
AreaType getAreaType() -
markedBlocks
Set<net.minecraft.core.BlockPos> markedBlocks() -
getHull
Set<net.minecraft.core.BlockPos> getHull()Set containing all block positions which represent the outer hull of the marked area. The hull is the solid outer perimeter of the marked area. -
getFrame
Set<net.minecraft.core.BlockPos> getFrame()Set containing all block positions which represent the outer frame of the marked area. The frame is the minimum required blocks to give a rough outline o the marked area -
getMinimalOutline
Set<net.minecraft.core.BlockPos> getMinimalOutline() -
containsOther
-
intersects
-
getType
MarkedAreaType<?> getType() -
getDisplay
BlockDisplayProperties getDisplay() -
updateDisplay
-