Record Class CreativeEntries.Insertion.After
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.CreativeEntries.Insertion.After
- All Implemented Interfaces:
CreativeEntries.Insertion
- Enclosing interface:
CreativeEntries.Insertion
public static record CreativeEntries.Insertion.After(com.mojang.datafixers.util.Either<net.minecraft.world.item.Item, net.minecraft.world.item.ItemStack> target)
extends Record
implements CreativeEntries.Insertion
-
Nested Class Summary
Nested classes/interfaces inherited from interface CreativeEntries.Insertion
CreativeEntries.Insertion.After, CreativeEntries.Insertion.Before, CreativeEntries.Insertion.Insert, CreativeEntries.Insertion.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CreativeEntries.Insertion.After> -
Constructor Summary
ConstructorsConstructorDescriptionAfter(com.mojang.datafixers.util.Either<net.minecraft.world.item.Item, net.minecraft.world.item.ItemStack> target) Creates an instance of aAfterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.datafixers.util.Either<net.minecraft.world.item.Item, net.minecraft.world.item.ItemStack> target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
CODEC
-
-
Constructor Details
-
After
public After(com.mojang.datafixers.util.Either<net.minecraft.world.item.Item, net.minecraft.world.item.ItemStack> target) Creates an instance of aAfterrecord class.- Parameters:
target- the value for thetargetrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceCreativeEntries.Insertion
-
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). -
target
public com.mojang.datafixers.util.Either<net.minecraft.world.item.Item, net.minecraft.world.item.ItemStack> target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-