Package net.minecraft
Record Class class_10179
java.lang.Object
java.lang.Record
net.minecraft.class_10179
- Record Components:
type-keepEquipment-preserveCanPickUpLoot-team-
public record class_10179(class_10181 type, boolean keepEquipment, boolean preserveCanPickUpLoot, @Nullable Team team)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10179intermediary net/minecraft/class_10179official btunamed typeintermediary comp_3144official anamed keepEquipmentintermediary comp_3145official bnamed preserveCanPickUpLootintermediary comp_3146official cnamed teamintermediary comp_3147official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thekeepEquipmentrecord component.private final booleanThe field for thepreserveCanPickUpLootrecord component.The field for theteamrecord component.private final class_10181The field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10179(class_10181 class_10181, boolean bool, boolean bool2, @Nullable Team team) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thekeepEquipmentrecord component.static class_10179method_63607(MobEntity mobEntity, boolean bool, boolean bool2) booleanReturns the value of thepreserveCanPickUpLootrecord component.team()Returns the value of theteamrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
keepEquipment
private final boolean keepEquipmentThe field for thekeepEquipmentrecord component. -
preserveCanPickUpLoot
private final boolean preserveCanPickUpLootThe field for thepreserveCanPickUpLootrecord component. -
team
The field for theteamrecord component.
-
-
Constructor Details
-
class_10179
public class_10179(class_10181 class_10181, boolean bool, boolean bool2, @Nullable @Nullable Team team)
-
-
Method Details
-
method_63607
- Mappings:
Namespace Name Mixin selector named method_63607Lnet/minecraft/class_10179;method_63607(Lnet/minecraft/entity/mob/MobEntity;ZZ)Lnet/minecraft/class_10179;intermediary method_63607Lnet/minecraft/class_10179;method_63607(Lnet/minecraft/class_1308;ZZ)Lnet/minecraft/class_10179;official aLbtu;a(Lbux;ZZ)Lbtu;
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
keepEquipment
public boolean keepEquipment()Returns the value of thekeepEquipmentrecord component.- Returns:
- the value of the
keepEquipmentrecord component
-
preserveCanPickUpLoot
public boolean preserveCanPickUpLoot()Returns the value of thepreserveCanPickUpLootrecord component.- Returns:
- the value of the
preserveCanPickUpLootrecord component
-
team
Returns the value of theteamrecord component.- Returns:
- the value of the
teamrecord component
-