Record Class AAIBB
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.math.AAIBB
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.AABBaabb()it.unimi.dsi.fastutil.longs.LongSetvoidcollectChunkPositions(it.unimi.dsi.fastutil.longs.LongSet chunks) booleancontains(int x, int y, int z) booleancontainsChunk(int x, int z) booleancontainsChunk(net.minecraft.world.level.ChunkPos pos) booleancontainsSection(int x, int y, int z) booleancontainsSection(net.minecraft.core.SectionPos pos) final booleanIndicates whether some other object is "equal to" this one.voidforEveryEdgePosition(Consumer<net.minecraft.core.BlockPos> consumer) final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPosmax()intmaxX()Returns the value of themaxXrecord component.intmaxY()Returns the value of themaxYrecord component.intmaxZ()Returns the value of themaxZrecord component.net.minecraft.core.BlockPosmin()intminX()Returns the value of theminXrecord component.intminY()Returns the value of theminYrecord component.intminZ()Returns the value of theminZrecord component.int[]final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, AAIBB> STREAM_CODEC
-
-
Constructor Details
-
AAIBB
public AAIBB(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Creates an instance of aAAIBBrecord class.- Parameters:
minX- the value for theminXrecord componentminY- the value for theminYrecord componentminZ- the value for theminZrecord componentmaxX- the value for themaxXrecord componentmaxY- the value for themaxYrecord componentmaxZ- the value for themaxZrecord component
-
AAIBB
public AAIBB(int[] array) -
AAIBB
public AAIBB(net.minecraft.core.Vec3i min, net.minecraft.core.Vec3i max)
-
-
Method Details
-
min
public net.minecraft.core.BlockPos min() -
max
public net.minecraft.core.BlockPos max() -
aabb
public net.minecraft.world.phys.AABB aabb() -
toIntArray
public int[] toIntArray() -
toIntStream
-
collectChunkPositions
public void collectChunkPositions(it.unimi.dsi.fastutil.longs.LongSet chunks) -
collectChunkPositions
public it.unimi.dsi.fastutil.longs.LongSet collectChunkPositions() -
contains
public boolean contains(int x, int y, int z) -
containsChunk
public boolean containsChunk(int x, int z) -
containsChunk
public boolean containsChunk(net.minecraft.world.level.ChunkPos pos) -
containsSection
public boolean containsSection(int x, int y, int z) -
containsSection
public boolean containsSection(net.minecraft.core.SectionPos pos) -
forEveryEdgePosition
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
minX
public int minX()Returns the value of theminXrecord component.- Returns:
- the value of the
minXrecord component
-
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
minZ
public int minZ()Returns the value of theminZrecord component.- Returns:
- the value of the
minZrecord component
-
maxX
public int maxX()Returns the value of themaxXrecord component.- Returns:
- the value of the
maxXrecord component
-
maxY
public int maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
maxZ
public int maxZ()Returns the value of themaxZrecord component.- Returns:
- the value of the
maxZrecord component
-