Record Class CrystalPhylacteryContentsSize
java.lang.Object
java.lang.Record
at.minecraftschurli.mods.arsmagicalegacy.api.spell.CrystalPhylacteryContentsSize
- Record Components:
size- The size, i.e. the amount of kills needed, of theEntityTypein a crystal phylactery.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CrystalPhylacteryContentsSize> static final net.neoforged.neoforge.registries.datamaps.DataMapType<net.minecraft.world.entity.EntityType<?>, CrystalPhylacteryContentsSize> -
Constructor Summary
ConstructorsConstructorDescriptionCrystalPhylacteryContentsSize(int size) Creates an instance of aCrystalPhylacteryContentsSizerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static intget(net.minecraft.world.entity.EntityType<?> type) static booleanhas(net.minecraft.world.entity.EntityType<?> type) final inthashCode()Returns a hash code value for this object.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
DATA_MAP
public static final net.neoforged.neoforge.registries.datamaps.DataMapType<net.minecraft.world.entity.EntityType<?>, CrystalPhylacteryContentsSize> DATA_MAP
-
-
Constructor Details
-
CrystalPhylacteryContentsSize
public CrystalPhylacteryContentsSize(int size) Creates an instance of aCrystalPhylacteryContentsSizerecord class.- Parameters:
size- the value for thesizerecord component
-
-
Method Details
-
get
public static int get(net.minecraft.world.entity.EntityType<?> type) - Parameters:
type- TheEntityTypeto query.- Returns:
- The size of the
EntityTypein a crystal phylactery.
-
has
public static boolean has(net.minecraft.world.entity.EntityType<?> type) - Parameters:
type- TheEntityTypeto query.- Returns:
- Whether a size override for the given
EntityTypeexists.
-
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 with thecomparemethod from their corresponding wrapper classes. -
size
-