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
  • Field Details

  • Constructor Details

  • 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • type

      public EntityConversionType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • keepEquipment

      public boolean keepEquipment()
      Returns the value of the keepEquipment record component.
      Returns:
      the value of the keepEquipment record component
    • preserveCanPickUpLoot

      public boolean preserveCanPickUpLoot()
      Returns the value of the preserveCanPickUpLoot record component.
      Returns:
      the value of the preserveCanPickUpLoot record component
    • team

      @Nullable public @Nullable Team team()
      Returns the value of the team record component.
      Returns:
      the value of the team record component