Package de.z0rdak.yawp.core.area
Class VerticalCylinderArea
java.lang.Object
de.z0rdak.yawp.core.area.MarkedArea
de.z0rdak.yawp.core.area.CenteredArea
de.z0rdak.yawp.core.area.VerticalCylinderArea
- All Implemented Interfaces:
IMarkableArea
Vertical, cylindrical area defined by the bottom center position and a perimeter position.
The perimeter position defines both the height and radius of the area.
-
Field Summary
Fields inherited from class de.z0rdak.yawp.core.area.CenteredArea
center -
Constructor Summary
ConstructorsConstructorDescriptionVerticalCylinderArea(net.minecraft.core.BlockPos centerBottomPos, int radius, int distance) VerticalCylinderArea(net.minecraft.core.BlockPos centerBottomPos, net.minecraft.core.BlockPos scopePos) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(net.minecraft.core.BlockPos pos) booleancontainsOther(IMarkableArea other) net.minecraft.core.Vec3iintSet<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(IMarkableArea other) net.minecraft.core.BlockPosmultiply(net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2) toString()Methods inherited from class de.z0rdak.yawp.core.area.CenteredArea
getCenterPos, markedBlocksMethods inherited from class de.z0rdak.yawp.core.area.MarkedArea
getAreaType, getDisplay, updateDisplay
-
Constructor Details
-
VerticalCylinderArea
public VerticalCylinderArea(net.minecraft.core.BlockPos centerBottomPos, net.minecraft.core.BlockPos scopePos) -
VerticalCylinderArea
public VerticalCylinderArea(net.minecraft.core.BlockPos centerBottomPos, int radius, int distance)
-
-
Method Details
-
getCenter
public net.minecraft.core.Vec3i getCenter()- Overrides:
getCenterin classCenteredArea
-
contains
public boolean contains(net.minecraft.core.BlockPos pos) - Specified by:
containsin interfaceIMarkableArea- Overrides:
containsin classCenteredArea- Parameters:
pos-- Returns:
-
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
-
getDistance
public int getDistance() -
getRadius
public int getRadius() -
multiply
public net.minecraft.core.BlockPos multiply(net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2) -
containsOther
-
intersects
-
getType
-
toString
-