Record Class OperatorBlockPseudoTag
java.lang.Object
java.lang.Record
net.modgarden.barricade.client.util.OperatorBlockPseudoTag
public record OperatorBlockPseudoTag(net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> blocks, boolean replace)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<OperatorBlockPseudoTag> static final com.mojang.serialization.Codec<OperatorBlockPseudoTag> static final OperatorBlockPseudoTag -
Constructor Summary
ConstructorsConstructorDescriptionOperatorBlockPseudoTag(net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> blocks, boolean replace) Creates an instance of aOperatorBlockPseudoTagrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> blocks()Returns the value of theblocksrecord component.combine(OperatorBlockPseudoTag other) booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanreplace()Returns the value of thereplacerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DIRECT_CODEC
-
CODEC
-
EMPTY
-
-
Constructor Details
-
OperatorBlockPseudoTag
public OperatorBlockPseudoTag(net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> blocks, boolean replace) Creates an instance of aOperatorBlockPseudoTagrecord class.- Parameters:
blocks- the value for theblocksrecord componentreplace- the value for thereplacerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hashCode
-
combine
-
toString
-
blocks
public net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> blocks()Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
replace
public boolean replace()Returns the value of thereplacerecord component.- Returns:
- the value of the
replacerecord component
-