Record Class VaultConfig

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

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

    • lootTable Link icon

      private final RegistryKey<LootTable> lootTable
      The field for the lootTable record component.
    • activationRange Link icon

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

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

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

      private final Optional<RegistryKey<LootTable>> overrideLootTableToDisplay
      The field for the overrideLootTableToDisplay record component.
    • playerDetector Link icon

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

      private final EntityDetector.Selector entitySelector
      The field for the entitySelector record component.
    • CONFIG_KEY Link icon

      static final String CONFIG_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CONFIG_KEY Lnet/minecraft/block/vault/VaultConfig;CONFIG_KEY:Ljava/lang/String;
      intermediary field_48881 Lnet/minecraft/class_9203;field_48881:Ljava/lang/String;
      official a Ldrn;a:Ljava/lang/String;
    • DEFAULT Link icon

      static VaultConfig DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/block/vault/VaultConfig;DEFAULT:Lnet/minecraft/block/vault/VaultConfig;
      intermediary field_48882 Lnet/minecraft/class_9203;field_48882:Lnet/minecraft/class_9203;
      official b Ldrn;b:Ldrn;
    • codec Link icon

      static com.mojang.serialization.Codec<VaultConfig> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/block/vault/VaultConfig;codec:Lcom/mojang/serialization/Codec;
      intermediary field_48883 Lnet/minecraft/class_9203;field_48883:Lcom/mojang/serialization/Codec;
      official c Ldrn;c:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

    • VaultConfig Link icon

      private VaultConfig()
    • VaultConfig Link icon

      public VaultConfig(RegistryKey<LootTable> lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<RegistryKey<LootTable>> overrideLootTableToDisplay)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/vault/VaultConfig;<init>(Lnet/minecraft/registry/RegistryKey;DDLnet/minecraft/item/ItemStack;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_9203;<init>(Lnet/minecraft/class_5321;DDLnet/minecraft/class_1799;Ljava/util/Optional;)V
      official <init> Ldrn;<init>(Lale;DDLcuq;Ljava/util/Optional;)V
    • VaultConfig Link icon

      public VaultConfig(RegistryKey<LootTable> registryKey, double double2, double double3, ItemStack itemStack, Optional<RegistryKey<LootTable>> optional, EntityDetector entityDetector, EntityDetector.Selector selector)
  • Method Details Link icon

    • playerDetector Link icon

      public EntityDetector playerDetector()
      Returns the value of the playerDetector record component.
      Returns:
      the value of the playerDetector record component
    • validate Link icon

      private com.mojang.serialization.DataResult<VaultConfig> validate()
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/block/vault/VaultConfig;validate()Lcom/mojang/serialization/DataResult;
      intermediary method_56765 Lnet/minecraft/class_9203;method_56765()Lcom/mojang/serialization/DataResult;
      official h Ldrn;h()Lcom/mojang/serialization/DataResult;
    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public RegistryKey<LootTable> lootTable()
      Returns the value of the lootTable record component.
      Returns:
      the value of the lootTable record component
    • activationRange Link icon

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

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

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

      public Optional<RegistryKey<LootTable>> overrideLootTableToDisplay()
      Returns the value of the overrideLootTableToDisplay record component.
      Returns:
      the value of the overrideLootTableToDisplay record component
    • entitySelector Link icon

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