Package net.minecraft

Record Class class_9203

java.lang.Object
java.lang.Record
net.minecraft.class_9203
Record Components:
lootTable -
activationRange -
deactivationRange -
keyItem -
overrideLootTableToDisplay -
playerDetector -
entitySelector -

public record class_9203(Identifier lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<Identifier> overrideLootTableToDisplay, EntityDetector playerDetector, EntityDetector.class_9198 entitySelector) extends Record
Mappings:
Namespace Name
official dlo
intermediary net/minecraft/class_9203
named net/minecraft/class_9203
official d
intermediary comp_2305
named lootTable
official e
intermediary comp_2306
named activationRange
official f
intermediary comp_2307
named deactivationRange
official g
intermediary comp_2308
named keyItem
official h
intermediary comp_2309
named overrideLootTableToDisplay
official i
intermediary comp_2310
named playerDetector
official j
intermediary comp_2311
named entitySelector
  • Field Details

    • lootTable

      private final Identifier lootTable
      The field for the lootTable record component.
    • activationRange

      private final double activationRange
      The field for the activationRange record component.
    • deactivationRange

      private final double deactivationRange
      The field for the deactivationRange record component.
    • keyItem

      private final ItemStack keyItem
      The field for the keyItem record component.
    • overrideLootTableToDisplay

      private final Optional<Identifier> overrideLootTableToDisplay
      The field for the overrideLootTableToDisplay record component.
    • playerDetector

      private final EntityDetector playerDetector
      The field for the playerDetector record component.
    • entitySelector

      private final EntityDetector.class_9198 entitySelector
      The field for the entitySelector record component.
    • field_48881

      static final String field_48881
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldlo;a:Ljava/lang/String;
      intermediary field_48881 Lnet/minecraft/class_9203;field_48881:Ljava/lang/String;
      named field_48881 Lnet/minecraft/class_9203;field_48881:Ljava/lang/String;
    • field_48882

      static class_9203 field_48882
      Mappings:
      Namespace Name Mixin selector
      official b Ldlo;b:Ldlo;
      intermediary field_48882 Lnet/minecraft/class_9203;field_48882:Lnet/minecraft/class_9203;
      named field_48882 Lnet/minecraft/class_9203;field_48882:Lnet/minecraft/class_9203;
    • field_48883

      static com.mojang.serialization.Codec<class_9203> field_48883
      Mappings:
      Namespace Name Mixin selector
      official c Ldlo;c:Lcom/mojang/serialization/Codec;
      intermediary field_48883 Lnet/minecraft/class_9203;field_48883:Lcom/mojang/serialization/Codec;
      named field_48883 Lnet/minecraft/class_9203;field_48883:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • playerDetector

      public EntityDetector playerDetector()
      Returns the value of the playerDetector record component.
      Returns:
      the value of the playerDetector record component
    • method_56765

      private com.mojang.serialization.DataResult<class_9203> method_56765()
      Mappings:
      Namespace Name Mixin selector
      official h Ldlo;h()Lcom/mojang/serialization/DataResult;
      intermediary method_56765 Lnet/minecraft/class_9203;method_56765()Lcom/mojang/serialization/DataResult;
      named method_56765 Lnet/minecraft/class_9203;method_56765()Lcom/mojang/serialization/DataResult;
    • 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.
    • lootTable

      public Identifier lootTable()
      Returns the value of the lootTable record component.
      Returns:
      the value of the lootTable record component
    • activationRange

      public double activationRange()
      Returns the value of the activationRange record component.
      Returns:
      the value of the activationRange record component
    • deactivationRange

      public double deactivationRange()
      Returns the value of the deactivationRange record component.
      Returns:
      the value of the deactivationRange record component
    • keyItem

      public ItemStack keyItem()
      Returns the value of the keyItem record component.
      Returns:
      the value of the keyItem record component
    • overrideLootTableToDisplay

      public Optional<Identifier> overrideLootTableToDisplay()
      Returns the value of the overrideLootTableToDisplay record component.
      Returns:
      the value of the overrideLootTableToDisplay record component
    • entitySelector

      public EntityDetector.class_9198 entitySelector()
      Returns the value of the entitySelector record component.
      Returns:
      the value of the entitySelector record component