Package net.minecraft.aprilfools.event
Record Class BattleMineEvent.Group
java.lang.Object
java.lang.Record
net.minecraft.aprilfools.event.BattleMineEvent.Group
- Record Components:
types-useBabyMobs-count-spawnStrategy-
- Enclosing class:
BattleMineEvent
public static record BattleMineEvent.Group(RegistryEntryList<EntityType<?>> types, boolean useBabyMobs, IntProvider count, BattleMineEvent.SpawnStrategy spawnStrategy)
extends Record
- Mappings:
Namespace Name named net/minecraft/aprilfools/event/BattleMineEvent$Groupintermediary net/minecraft/class_11088$class_11090official fbp$bnamed typesintermediary comp_3970official bnamed useBabyMobsintermediary comp_3971official cnamed countintermediary comp_3972official dnamed spawnStrategyintermediary comp_3973official e
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BattleMineEvent.Group> private final IntProviderThe field for thecountrecord component.private final BattleMineEvent.SpawnStrategyThe field for thespawnStrategyrecord component.private final RegistryEntryList<EntityType<?>> The field for thetypesrecord component.private final booleanThe field for theuseBabyMobsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGroup(RegistryEntryList<EntityType<?>> registryEntryList, boolean bool, IntProvider intProvider, BattleMineEvent.SpawnStrategy spawnStrategy) -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thespawnStrategyrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.booleanReturns the value of theuseBabyMobsrecord component.
-
Field Details
-
types
The field for thetypesrecord component. -
useBabyMobs
private final boolean useBabyMobsThe field for theuseBabyMobsrecord component. -
count
The field for thecountrecord component. -
spawnStrategy
The field for thespawnStrategyrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/aprilfools/event/BattleMineEvent$Group;CODEC:Lcom/mojang/serialization/Codec;intermediary field_59066Lnet/minecraft/class_11088$class_11090;field_59066:Lcom/mojang/serialization/Codec;official aLfbp$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Group
public Group(RegistryEntryList<EntityType<?>> registryEntryList, boolean bool, IntProvider intProvider, BattleMineEvent.SpawnStrategy spawnStrategy)
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-
useBabyMobs
public boolean useBabyMobs()Returns the value of theuseBabyMobsrecord component.- Returns:
- the value of the
useBabyMobsrecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
spawnStrategy
Returns the value of thespawnStrategyrecord component.- Returns:
- the value of the
spawnStrategyrecord component
-