Record Class StructurePacketImpl.Info
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.network.StructurePacketImpl.Info
- Enclosing class:
StructurePacketImpl
public static record StructurePacketImpl.Info(com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> piece, com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> box)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInfo(com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> piece, com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> box) Creates an instance of aInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> box()Returns the value of theboxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> piece()Returns the value of thepiecerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Info
public Info(com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> piece, com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> box) Creates an instance of aInforecord class.- Parameters:
piece- the value for thepiecerecord componentbox- the value for theboxrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
piece
public com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> piece()Returns the value of thepiecerecord component.- Returns:
- the value of the
piecerecord component
-
box
public com.mojang.datafixers.util.Pair<Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.Structure>>, Set<net.minecraft.tags.TagKey<net.minecraft.world.level.levelgen.structure.Structure>>> box()Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-