Package net.minecraft
Record Class class_12006
java.lang.Object
java.lang.Record
net.minecraft.class_12006
- Record Components:
name-profession-xp-health-maxHealth-inventory-wantsGolem-angerLevel-activities-behaviors-memories-gossips-pois-potentialPois-
public record class_12006(String name, String profession, int xp, float health, float maxHealth, String inventory, boolean wantsGolem, int angerLevel, List<String> activities, List<String> behaviors, List<String> memories, List<String> gossips, Set<BlockPos> pois, Set<BlockPos> potentialPois)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_12006intermediary net/minecraft/class_12006official bvdnamed nameintermediary comp_4838official bnamed professionintermediary comp_4839official cnamed xpintermediary comp_4840official dnamed healthintermediary comp_4841official enamed maxHealthintermediary comp_4842official fnamed inventoryintermediary comp_4843official gnamed wantsGolemintermediary comp_4844official hnamed angerLevelintermediary comp_4845official inamed activitiesintermediary comp_4846official jnamed behaviorsintermediary comp_4847official knamed memoriesintermediary comp_4848official lnamed gossipsintermediary comp_4849official mnamed poisintermediary comp_4850official nnamed potentialPoisintermediary comp_4851official o
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theactivitiesrecord component.private final intThe field for theangerLevelrecord component.The field for thebehaviorsrecord component.static final PacketCodec<PacketByteBuf, class_12006> The field for thegossipsrecord component.private final floatThe field for thehealthrecord component.private final StringThe field for theinventoryrecord component.private final floatThe field for themaxHealthrecord component.The field for thememoriesrecord component.private final StringThe field for thenamerecord component.The field for thepoisrecord component.The field for thepotentialPoisrecord component.private final StringThe field for theprofessionrecord component.private final booleanThe field for thewantsGolemrecord component.private final intThe field for thexprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12006(String string, String string2, int int2, float float2, float float3, String string3, boolean bool, int int3, List<String> list, List<String> list2, List<String> list3, List<String> list4, Set<BlockPos> set, Set<BlockPos> set2) class_12006(PacketByteBuf packetByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivitiesrecord component.intReturns the value of theangerLevelrecord component.Returns the value of thebehaviorsrecord component.final booleanIndicates whether some other object is "equal to" this one.gossips()Returns the value of thegossipsrecord component.final inthashCode()Returns a hash code value for this object.floathealth()Returns the value of thehealthrecord component.Returns the value of theinventoryrecord component.floatReturns the value of themaxHealthrecord component.memories()Returns the value of thememoriesrecord component.private static Stringmethod_74549(ServerWorld serverWorld, long long2, MemoryModuleType<?> memoryModuleType, Optional<? extends Memory<?>> optional) static class_12006method_74551(ServerWorld serverWorld, LivingEntity livingEntity) method_74552(ServerWorld serverWorld, LivingEntity livingEntity, long long2) private static Stringmethod_74553(ServerWorld serverWorld, @Nullable Object object) method_74554(Brain<?> brain, MemoryModuleType<GlobalPos>[] memoryModuleType) method_74555(VillagerEntity villagerEntity) booleanmethod_74556(BlockPos blockPos) voidmethod_74560(PacketByteBuf packetByteBuf) booleanmethod_74563(BlockPos blockPos) name()Returns the value of thenamerecord component.pois()Returns the value of thepoisrecord component.Returns the value of thepotentialPoisrecord component.Returns the value of theprofessionrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewantsGolemrecord component.intxp()Returns the value of thexprecord component.
-
Field Details
-
name
The field for thenamerecord component. -
profession
The field for theprofessionrecord component. -
xp
private final int xpThe field for thexprecord component. -
health
private final float healthThe field for thehealthrecord component. -
maxHealth
private final float maxHealthThe field for themaxHealthrecord component. -
inventory
The field for theinventoryrecord component. -
wantsGolem
private final boolean wantsGolemThe field for thewantsGolemrecord component. -
angerLevel
private final int angerLevelThe field for theangerLevelrecord component. -
activities
The field for theactivitiesrecord component. -
behaviors
The field for thebehaviorsrecord component. -
memories
The field for thememoriesrecord component. -
gossips
The field for thegossipsrecord component. -
pois
The field for thepoisrecord component. -
potentialPois
The field for thepotentialPoisrecord component. -
field_62845
- Mappings:
Namespace Name Mixin selector named field_62845Lnet/minecraft/class_12006;field_62845:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62845Lnet/minecraft/class_12006;field_62845:Lnet/minecraft/class_9139;official aLbvd;a:Laae;
-
-
Constructor Details
-
class_12006
-
class_12006
-
-
Method Details
-
method_74560
- Mappings:
Namespace Name Mixin selector named method_74560Lnet/minecraft/class_12006;method_74560(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_74560Lnet/minecraft/class_12006;method_74560(Lnet/minecraft/class_2540;)Vofficial aLbvd;a(Lwn;)V
-
method_74551
- Mappings:
Namespace Name Mixin selector named method_74551Lnet/minecraft/class_12006;method_74551(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/class_12006;intermediary method_74551Lnet/minecraft/class_12006;method_74551(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Lnet/minecraft/class_12006;official aLbvd;a(Lawu;Lcer;)Lbvd;
-
method_74554
@SafeVarargs private static Set<BlockPos> method_74554(Brain<?> brain, MemoryModuleType<GlobalPos>[] memoryModuleType) - Mappings:
Namespace Name Mixin selector named method_74554Lnet/minecraft/class_12006;method_74554(Lnet/minecraft/entity/ai/brain/Brain;[Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Ljava/util/Set;intermediary method_74554Lnet/minecraft/class_12006;method_74554(Lnet/minecraft/class_4095;[Lnet/minecraft/class_4140;)Ljava/util/Set;official aLbvd;a(Lcfr;[Lcnu;)Ljava/util/Set;
-
method_74555
- Mappings:
Namespace Name Mixin selector named method_74555Lnet/minecraft/class_12006;method_74555(Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/List;intermediary method_74555Lnet/minecraft/class_12006;method_74555(Lnet/minecraft/class_1646;)Ljava/util/List;official aLbvd;a(Lcyt;)Ljava/util/List;
-
method_74552
private static Stream<String> method_74552(ServerWorld serverWorld, LivingEntity livingEntity, long long2) - Mappings:
Namespace Name Mixin selector named method_74552Lnet/minecraft/class_12006;method_74552(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Ljava/util/stream/Stream;intermediary method_74552Lnet/minecraft/class_12006;method_74552(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Ljava/util/stream/Stream;official aLbvd;a(Lawu;Lcer;J)Ljava/util/stream/Stream;
-
method_74549
private static String method_74549(ServerWorld serverWorld, long long2, MemoryModuleType<?> memoryModuleType, Optional<? extends Memory<?>> optional) - Mappings:
Namespace Name Mixin selector named method_74549Lnet/minecraft/class_12006;method_74549(Lnet/minecraft/server/world/ServerWorld;JLnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)Ljava/lang/String;intermediary method_74549Lnet/minecraft/class_12006;method_74549(Lnet/minecraft/class_3218;JLnet/minecraft/class_4140;Ljava/util/Optional;)Ljava/lang/String;official aLbvd;a(Lawu;JLcnu;Ljava/util/Optional;)Ljava/lang/String;
-
method_74553
- Mappings:
Namespace Name Mixin selector named method_74553Lnet/minecraft/class_12006;method_74553(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/Object;)Ljava/lang/String;intermediary method_74553Lnet/minecraft/class_12006;method_74553(Lnet/minecraft/class_3218;Ljava/lang/Object;)Ljava/lang/String;official aLbvd;a(Lawu;Ljava/lang/Object;)Ljava/lang/String;
-
method_74556
- Mappings:
Namespace Name Mixin selector named method_74556Lnet/minecraft/class_12006;method_74556(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_74556Lnet/minecraft/class_12006;method_74556(Lnet/minecraft/class_2338;)Zofficial aLbvd;a(Lja;)Z
-
method_74563
- Mappings:
Namespace Name Mixin selector named method_74563Lnet/minecraft/class_12006;method_74563(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_74563Lnet/minecraft/class_12006;method_74563(Lnet/minecraft/class_2338;)Zofficial bLbvd;b(Lja;)Z
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
profession
Returns the value of theprofessionrecord component.- Returns:
- the value of the
professionrecord component
-
xp
public int xp()Returns the value of thexprecord component.- Returns:
- the value of the
xprecord component
-
health
public float health()Returns the value of thehealthrecord component.- Returns:
- the value of the
healthrecord component
-
maxHealth
public float maxHealth()Returns the value of themaxHealthrecord component.- Returns:
- the value of the
maxHealthrecord component
-
inventory
Returns the value of theinventoryrecord component.- Returns:
- the value of the
inventoryrecord component
-
wantsGolem
public boolean wantsGolem()Returns the value of thewantsGolemrecord component.- Returns:
- the value of the
wantsGolemrecord component
-
angerLevel
public int angerLevel()Returns the value of theangerLevelrecord component.- Returns:
- the value of the
angerLevelrecord component
-
activities
Returns the value of theactivitiesrecord component.- Returns:
- the value of the
activitiesrecord component
-
behaviors
Returns the value of thebehaviorsrecord component.- Returns:
- the value of the
behaviorsrecord component
-
memories
Returns the value of thememoriesrecord component.- Returns:
- the value of the
memoriesrecord component
-
gossips
Returns the value of thegossipsrecord component.- Returns:
- the value of the
gossipsrecord component
-
pois
Returns the value of thepoisrecord component.- Returns:
- the value of the
poisrecord component
-
potentialPois
Returns the value of thepotentialPoisrecord component.- Returns:
- the value of the
potentialPoisrecord component
-