Record Class ExtrudeCriterionTrigger.Instance
java.lang.Object
java.lang.Record
com.petrolpark.compat.create.common.processing.extrusion.ExtrudeCriterionTrigger.Instance
- All Implemented Interfaces:
net.minecraft.advancements.critereon.SimpleCriterionTrigger.SimpleInstance,net.minecraft.advancements.CriterionTriggerInstance
- Enclosing class:
ExtrudeCriterionTrigger
public static record ExtrudeCriterionTrigger.Instance(Optional<net.minecraft.advancements.critereon.ContextAwarePredicate> player, Optional<net.minecraft.resources.ResourceLocation> recipeId, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> inputBlock, Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> inputState, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> outputBlock, Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> outputState)
extends Record
implements net.minecraft.advancements.critereon.SimpleCriterionTrigger.SimpleInstance
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ExtrudeCriterionTrigger.Instance> -
Constructor Summary
ConstructorsConstructorDescriptionInstance(Optional<net.minecraft.advancements.critereon.ContextAwarePredicate> player, Optional<net.minecraft.resources.ResourceLocation> recipeId, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> inputBlock, Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> inputState, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> outputBlock, Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> outputState) Creates an instance of aInstancerecord 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.Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> Returns the value of theinputBlockrecord component.Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> Returns the value of theinputStaterecord component.Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> Returns the value of theoutputBlockrecord component.Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> Returns the value of theoutputStaterecord component.Optional<net.minecraft.advancements.critereon.ContextAwarePredicate> player()Returns the value of theplayerrecord component.Optional<net.minecraft.resources.ResourceLocation> recipeId()Returns the value of therecipeIdrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.advancements.critereon.SimpleCriterionTrigger.SimpleInstance
validate
-
Field Details
-
CODEC
-
-
Constructor Details
-
Instance
public Instance(Optional<net.minecraft.advancements.critereon.ContextAwarePredicate> player, Optional<net.minecraft.resources.ResourceLocation> recipeId, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> inputBlock, Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> inputState, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>> outputBlock, Optional<net.minecraft.advancements.critereon.StatePropertiesPredicate> outputState) Creates an instance of aInstancerecord class.- Parameters:
player- the value for theplayerrecord componentrecipeId- the value for therecipeIdrecord componentinputBlock- the value for theinputBlockrecord componentinputState- the value for theinputStaterecord componentoutputBlock- the value for theoutputBlockrecord componentoutputState- the value for theoutputStaterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
player
Returns the value of theplayerrecord component.- Specified by:
playerin interfacenet.minecraft.advancements.critereon.SimpleCriterionTrigger.SimpleInstance- Returns:
- the value of the
playerrecord component
-
recipeId
Returns the value of therecipeIdrecord component.- Returns:
- the value of the
recipeIdrecord component
-
inputBlock
Returns the value of theinputBlockrecord component.- Returns:
- the value of the
inputBlockrecord component
-
inputState
Returns the value of theinputStaterecord component.- Returns:
- the value of the
inputStaterecord component
-
outputBlock
Returns the value of theoutputBlockrecord component.- Returns:
- the value of the
outputBlockrecord component
-
outputState
Returns the value of theoutputStaterecord component.- Returns:
- the value of the
outputStaterecord component
-