Package de.z0rdak.yawp.core.area
Class SphereArea
java.lang.Object
de.z0rdak.yawp.core.area.MarkedArea
de.z0rdak.yawp.core.area.CenteredArea
de.z0rdak.yawp.core.area.SphereArea
- All Implemented Interfaces:
IMarkableArea
-
Field Summary
FieldsFields inherited from class de.z0rdak.yawp.core.area.CenteredArea
center -
Constructor Summary
ConstructorsConstructorDescriptionSphereArea(net.minecraft.core.BlockPos middlePos, int radius) SphereArea(net.minecraft.core.BlockPos centerPos, net.minecraft.core.BlockPos scopePos) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(CuboidArea inner) booleancontains(SphereArea inner) booleancontains(net.minecraft.core.BlockPos pos) booleancontainsOther(IMarkableArea inner) static SphereAreaexpand(SphereArea area, int expansion) 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> intgetType()booleanintersects(CuboidArea other) booleanintersects(IMarkableArea other) booleanintersects(SphereArea other) booleanisHullBlock(net.minecraft.core.BlockPos pos) toString()Methods inherited from class de.z0rdak.yawp.core.area.CenteredArea
getCenter, getCenterPos, markedBlocksMethods inherited from class de.z0rdak.yawp.core.area.MarkedArea
getAreaType, getDisplay, updateDisplay
-
Field Details
-
CODEC
-
-
Constructor Details
-
SphereArea
public SphereArea(net.minecraft.core.BlockPos centerPos, net.minecraft.core.BlockPos scopePos) -
SphereArea
public SphereArea(net.minecraft.core.BlockPos middlePos, int radius)
-
-
Method Details
-
expand
-
getRadius
public int getRadius() -
contains
public boolean contains(net.minecraft.core.BlockPos pos) - Specified by:
containsin interfaceIMarkableArea- Overrides:
containsin classCenteredArea
-
isHullBlock
public boolean isHullBlock(net.minecraft.core.BlockPos pos) -
getHull
Description copied from interface:IMarkableAreaSet 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
Description copied from interface:IMarkableAreaSet 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
-
contains
-
contains
-
intersects
-
intersects
-
containsOther
-
intersects
-
getType
-
toString
-