Package de.z0rdak.yawp.core.area
Class VerticalCylinderArea
java.lang.Object
de.z0rdak.yawp.core.area.AbstractArea
de.z0rdak.yawp.core.area.CenteredArea
de.z0rdak.yawp.core.area.VerticalCylinderArea
- All Implemented Interfaces:
IMarkableArea,INbtSerializable<net.minecraft.nbt.CompoundTag>
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) VerticalCylinderArea(net.minecraft.nbt.CompoundTag nbt) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(net.minecraft.core.BlockPos pos) booleancontainsOther(IMarkableArea other) voiddeserializeNBT(net.minecraft.nbt.CompoundTag nbt) net.minecraft.core.Vec3iintSet<net.minecraft.core.BlockPos>getHull()intbooleanintersects(IMarkableArea other) net.minecraft.core.BlockPosmultiply(net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2) net.minecraft.nbt.CompoundTagtoString()Methods inherited from class de.z0rdak.yawp.core.area.CenteredArea
getCenterPos, markedBlocksMethods inherited from class de.z0rdak.yawp.core.area.AbstractArea
getAreaType
-
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) -
VerticalCylinderArea
public VerticalCylinderArea(net.minecraft.nbt.CompoundTag nbt)
-
-
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
-
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) -
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT()- Specified by:
serializeNBTin interfaceINbtSerializable<net.minecraft.nbt.CompoundTag>- Overrides:
serializeNBTin classCenteredArea
-
deserializeNBT
public void deserializeNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
deserializeNBTin interfaceINbtSerializable<net.minecraft.nbt.CompoundTag>- Overrides:
deserializeNBTin classCenteredArea
-
containsOther
-
intersects
-
toString
-