Record Class AltarCapMaterial
java.lang.Object
java.lang.Record
at.minecraftschurli.mods.arsmagicalegacy.api.magic.AltarCapMaterial
- Record Components:
block- TheBlockof the cap material.power- The power of the material.
public record AltarCapMaterial(net.minecraft.world.level.block.Block block, int power)
extends Record
Represents an altar's cap material.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<net.minecraft.core.Holder<AltarCapMaterial>> static final com.mojang.serialization.Codec<AltarCapMaterial> -
Constructor Summary
ConstructorsConstructorDescriptionAltarCapMaterial(net.minecraft.world.level.block.Block block, int power) Creates an instance of aAltarCapMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Blockblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpower()Returns the value of thepowerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DIRECT_CODEC
-
CODEC
public static final com.mojang.serialization.Codec<net.minecraft.core.Holder<AltarCapMaterial>> CODEC
-
-
Constructor Details
-
AltarCapMaterial
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
block
-
power
-