Package net.minecraft.block.spawner
Record Class MobSpawnerEntry
java.lang.Object
java.lang.Record
net.minecraft.block.spawner.MobSpawnerEntry
- Record Components:
- entity-
- customSpawnRules-
- equipment-
public record MobSpawnerEntry(NbtCompound entity, Optional<MobSpawnerEntry.CustomSpawnRules> customSpawnRules, Optional<EquipmentTable> equipment)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/block/spawner/MobSpawnerEntry- intermediary - net/minecraft/class_1952- official - dhd- named - entity- intermediary - comp_64- official - d- named - customSpawnRules- intermediary - comp_65- official - e- named - equipment- intermediary - comp_2648- official - f
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobSpawnerEntry> private final Optional<MobSpawnerEntry.CustomSpawnRules> The field for thecustomSpawnRulesrecord component.static final com.mojang.serialization.Codec<DataPool<MobSpawnerEntry>> private final NbtCompoundThe field for theentityrecord component.static final Stringprivate final Optional<EquipmentTable> The field for theequipmentrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMobSpawnerEntry(NbtCompound nbtCompound, Optional<MobSpawnerEntry.CustomSpawnRules> optional, Optional<EquipmentTable> optional2) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thecustomSpawnRulesrecord component.entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theequipmentrecord component.getNbt()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
entityThe field for theentityrecord component.
- 
customSpawnRulesThe field for thecustomSpawnRulesrecord component.
- 
equipmentThe field for theequipmentrecord component.
- 
ENTITY_KEY- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - ENTITY_KEY- Lnet/minecraft/block/spawner/MobSpawnerEntry;ENTITY_KEY:Ljava/lang/String;- intermediary - field_40893- Lnet/minecraft/class_1952;field_40893:Ljava/lang/String;- official - a- Ldhd;a:Ljava/lang/String;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/spawner/MobSpawnerEntry;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_34460- Lnet/minecraft/class_1952;field_34460:Lcom/mojang/serialization/Codec;- official - b- Ldhd;b:Lcom/mojang/serialization/Codec;
 
- 
DATA_POOL_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - DATA_POOL_CODEC- Lnet/minecraft/block/spawner/MobSpawnerEntry;DATA_POOL_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_34461- Lnet/minecraft/class_1952;field_34461:Lcom/mojang/serialization/Codec;- official - c- Ldhd;c:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
MobSpawnerEntrypublic MobSpawnerEntry()
- 
MobSpawnerEntrypublic MobSpawnerEntry(NbtCompound nbtCompound, Optional<MobSpawnerEntry.CustomSpawnRules> optional, Optional<EquipmentTable> optional2) 
 
- 
- 
Method Details- 
getNbt- Mappings:
- Namespace - Name - Mixin selector - named - getNbt- Lnet/minecraft/block/spawner/MobSpawnerEntry;getNbt()Lnet/minecraft/nbt/NbtCompound;- intermediary - method_38093- Lnet/minecraft/class_1952;method_38093()Lnet/minecraft/class_2487;- official - a- Ldhd;a()Ltq;
 
- 
getCustomSpawnRules- Mappings:
- Namespace - Name - Mixin selector - named - getCustomSpawnRules- Lnet/minecraft/block/spawner/MobSpawnerEntry;getCustomSpawnRules()Ljava/util/Optional;- intermediary - method_38097- Lnet/minecraft/class_1952;method_38097()Ljava/util/Optional;- official - b- Ldhd;b()Ljava/util/Optional;
 
- 
getEquipment- Mappings:
- Namespace - Name - Mixin selector - named - getEquipment- Lnet/minecraft/block/spawner/MobSpawnerEntry;getEquipment()Ljava/util/Optional;- intermediary - method_59717- Lnet/minecraft/class_1952;method_59717()Ljava/util/Optional;- official - c- Ldhd;c()Ljava/util/Optional;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
entityReturns the value of theentityrecord component.- Returns:
- the value of the entityrecord component
 
- 
customSpawnRulesReturns the value of thecustomSpawnRulesrecord component.- Returns:
- the value of the customSpawnRulesrecord component
 
- 
equipmentReturns the value of theequipmentrecord component.- Returns:
- the value of the equipmentrecord component
 
 
-