Class AreaTypeTorus
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaType
me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaTypeTorus
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaType
AreaType.AreaTypeWidget, AreaType.AreaTypeWidgetEnum<E extends ITranslatableEnum>, AreaType.AreaTypeWidgetInteger, AreaType.EnumAxis -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArea(Consumer<net.minecraft.core.BlockPos> areaAdder, net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Actually add the positions defined by this area to the given blockpos setvoidaddUIWidgets(List<AreaType.AreaTypeWidget> widgets) voidreadFromNBT(net.minecraft.nbt.CompoundTag tag) voidreadFromPacket(net.minecraft.network.FriendlyByteBuf buf) toString()voidwriteToNBT(net.minecraft.nbt.CompoundTag tag) voidwriteToPacket(net.minecraft.network.FriendlyByteBuf buffer) Methods inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaType
convertFromLegacy, getName, getTranslationKey, isDeterministic
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
AreaTypeTorus
public AreaTypeTorus()
-
-
Method Details
-
toString
-
addArea
public void addArea(Consumer<net.minecraft.core.BlockPos> areaAdder, net.minecraft.core.BlockPos p1, net.minecraft.core.BlockPos p2, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Description copied from class:AreaTypeActually add the positions defined by this area to the given blockpos set- Specified by:
addAreain classAreaType- Parameters:
areaAdder- the adder; calladder.accept(pos)to add a blockposp1- the first raw blockpos of the areap2- the second raw blockpos of the areaminX- min X coordminY- min Y coordminZ- min Z coordmaxX- max X coordmaxY- max Y coordmaxZ- max Z coord
-
addUIWidgets
- Overrides:
addUIWidgetsin classAreaType
-
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag tag) - Overrides:
writeToNBTin classAreaType
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag tag) - Overrides:
readFromNBTin classAreaType
-
writeToPacket
public void writeToPacket(net.minecraft.network.FriendlyByteBuf buffer) - Overrides:
writeToPacketin classAreaType
-
readFromPacket
public void readFromPacket(net.minecraft.network.FriendlyByteBuf buf) - Overrides:
readFromPacketin classAreaType
-