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.getType()booleanintersects(IMarkableArea other) List<net.minecraft.core.BlockPos>
-
Method Details
-
contains
boolean contains(net.minecraft.core.BlockPos pos) -
getAreaType
AreaType getAreaType() -
markedBlocks
List<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 -
containsOther
-
intersects
-
getType
MarkedAreaType<?> getType()
-