Record Class MaterialRules.SimpleBlockStateRule
java.lang.Object
java.lang.Record
net.minecraft.world.gen.surfacebuilder.MaterialRules.SimpleBlockStateRule
- Record Components:
state-
- All Implemented Interfaces:
MaterialRules.BlockStateRule
- Enclosing class:
MaterialRules
private static record MaterialRules.SimpleBlockStateRule(BlockState state)
extends Record
implements MaterialRules.BlockStateRule
Always returns the given
BlockState.- Mappings:
Namespace Name official dga$rintermediary net/minecraft/class_6686$class_6711named net/minecraft/world/gen/surfacebuilder/MaterialRules$SimpleBlockStateRuleofficial aintermediary comp_210named state
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateThe field for thestaterecord component. -
Constructor Summary
Constructors -
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.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.tryApply(int x, int y, int z)
-
Field Details
-
state
The field for thestaterecord component.
-
-
Constructor Details
-
SimpleBlockStateRule
SimpleBlockStateRule(BlockState blockState)
-
-
Method Details
-
tryApply
- Specified by:
tryApplyin interfaceMaterialRules.BlockStateRule- Mappings:
Namespace Name Mixin selector official tryApplyLdga$u;tryApply(III)Ldab;intermediary tryApplyLnet/minecraft/class_6686$class_6715;tryApply(III)Lnet/minecraft/class_2680;named tryApplyLnet/minecraft/world/gen/surfacebuilder/MaterialRules$BlockStateRule;tryApply(III)Lnet/minecraft/block/BlockState;
-
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). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-