Record Class CreativeEntries.Insertion.Before
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.CreativeEntries.Insertion.Before
- All Implemented Interfaces:
CreativeEntries.Insertion
- Enclosing interface:
CreativeEntries.Insertion
public static record CreativeEntries.Insertion.Before(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.Before> -
Constructor Summary
ConstructorsConstructorDescriptionBefore(com.mojang.datafixers.util.Either<net.minecraft.world.item.Item, net.minecraft.world.item.ItemStack> target) Creates an instance of aBeforerecord 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
-
Before
public Before(com.mojang.datafixers.util.Either<net.minecraft.world.item.Item, net.minecraft.world.item.ItemStack> target) Creates an instance of aBeforerecord 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
-