Package net.minecraft.entity.conversion
Record Class EntityConversionContext
java.lang.Object
java.lang.Record
net.minecraft.entity.conversion.EntityConversionContext
- Record Components:
type
-keepEquipment
-preserveCanPickUpLoot
-team
-
public record EntityConversionContext(EntityConversionType type, boolean keepEquipment, boolean preserveCanPickUpLoot, @Nullable Team team)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/conversion/EntityConversionContext
intermediary net/minecraft/class_10179
official bve
named type
intermediary comp_3144
official a
named keepEquipment
intermediary comp_3145
official b
named preserveCanPickUpLoot
intermediary comp_3146
official c
named team
intermediary comp_3147
official d
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
EntityConversionContext.Finalizer<T extends MobEntity>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for thekeepEquipment
record component.private final boolean
The field for thepreserveCanPickUpLoot
record component.The field for theteam
record component.private final EntityConversionType
The field for thetype
record component. -
Constructor Summary
ConstructorDescriptionEntityConversionContext
(EntityConversionType entityConversionType, boolean bool, boolean bool2, @Nullable Team team) -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityConversionContext
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thekeepEquipment
record component.boolean
Returns the value of thepreserveCanPickUpLoot
record component.team()
Returns the value of theteam
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Field Details
-
type
The field for thetype
record component. -
keepEquipment
private final boolean keepEquipmentThe field for thekeepEquipment
record component. -
preserveCanPickUpLoot
private final boolean preserveCanPickUpLootThe field for thepreserveCanPickUpLoot
record component. -
team
The field for theteam
record component.
-
-
Constructor Details
-
EntityConversionContext
public EntityConversionContext(EntityConversionType entityConversionType, boolean bool, boolean bool2, @Nullable @Nullable Team team)
-
-
Method Details
-
create
public static EntityConversionContext create(MobEntity entity, boolean keepEquipment, boolean preserveCanPickUpLoot) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/entity/conversion/EntityConversionContext;create(Lnet/minecraft/entity/mob/MobEntity;ZZ)Lnet/minecraft/entity/conversion/EntityConversionContext;
intermediary method_63607
Lnet/minecraft/class_10179;method_63607(Lnet/minecraft/class_1308;ZZ)Lnet/minecraft/class_10179;
official a
Lbve;a(Lbwh;ZZ)Lbve;
-
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 thetype
record component.- Returns:
- the value of the
type
record component
-
keepEquipment
public boolean keepEquipment()Returns the value of thekeepEquipment
record component.- Returns:
- the value of the
keepEquipment
record component
-
preserveCanPickUpLoot
public boolean preserveCanPickUpLoot()Returns the value of thepreserveCanPickUpLoot
record component.- Returns:
- the value of the
preserveCanPickUpLoot
record component
-
team
Returns the value of theteam
record component.- Returns:
- the value of the
team
record component
-