Class AreaTypeWall
java.lang.Object
me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaType
me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaTypeWall
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.common.drone.progwidgets.area.AreaType
AreaType.AreaTypeWidget, AreaType.AreaTypeWidgetEnum<E extends Enum<?>>, 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) voidconvertFromLegacy(LegacyAreaWidgetConverter.EnumOldAreaType oldAreaType, int typeInfo) Called when loading old-style programs from pastebin etc.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
getName, getTranslationKey, isDeterministic
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
AreaTypeWall
public AreaTypeWall()
-
-
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
-
convertFromLegacy
Description copied from class:AreaTypeCalled when loading old-style programs from pastebin etc. Convert any old-fashioned area representations to their modern equivalents.- Overrides:
convertFromLegacyin classAreaType- Parameters:
oldAreaType- the old-style area typetypeInfo- extra integer type information used by some types
-