Package de.z0rdak.yawp.core.area
Class SphereArea
java.lang.Object
de.z0rdak.yawp.core.area.AbstractArea
de.z0rdak.yawp.core.area.CenteredArea
de.z0rdak.yawp.core.area.SphereArea
- All Implemented Interfaces:
IMarkableArea,INbtSerializable<net.minecraft.nbt.CompoundTag>
-
Field Summary
Fields 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) SphereArea(net.minecraft.nbt.CompoundTag nbt) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(CuboidArea inner) booleancontains(SphereArea inner) booleancontains(net.minecraft.core.BlockPos pos) booleancontainsOther(IMarkableArea inner) voiddeserializeNBT(net.minecraft.nbt.CompoundTag nbt) static SphereAreaexpand(SphereArea area, int expansion) Set<net.minecraft.core.BlockPos>getHull()intbooleanintersects(CuboidArea other) booleanintersects(IMarkableArea other) booleanintersects(SphereArea other) net.minecraft.nbt.CompoundTagtoString()Methods inherited from class de.z0rdak.yawp.core.area.CenteredArea
getCenter, getCenterPos, markedBlocksMethods inherited from class de.z0rdak.yawp.core.area.AbstractArea
getAreaType
-
Constructor Details
-
SphereArea
public SphereArea(net.minecraft.nbt.CompoundTag nbt) -
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
-
getHull
-
contains
-
contains
-
intersects
-
intersects
-
containsOther
-
intersects
-
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
-
toString
-