Package net.minecraft.block.vault
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 official dpr
intermediary net/minecraft/class_9203
named net/minecraft/block/vault/VaultConfig
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final double
The field for theactivationRange
record component.(package private) static com.mojang.serialization.Codec
<VaultConfig> (package private) static final String
private final double
The field for thedeactivationRange
record component.(package private) static VaultConfig
private final EntityDetector.Selector
The field for theentitySelector
record component.private final ItemStack
The field for thekeyItem
record component.private final RegistryKey
<LootTable> The field for thelootTable
record component.private final Optional
<RegistryKey<LootTable>> The field for theoverrideLootTableToDisplay
record component.private final EntityDetector
The field for theplayerDetector
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
VaultConfig
(RegistryKey<LootTable> lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<RegistryKey<LootTable>> overrideLootTableToDisplay) VaultConfig
(RegistryKey<LootTable> registryKey, double double2, double double3, ItemStack itemStack, Optional<RegistryKey<LootTable>> optional, EntityDetector entityDetector, EntityDetector.Selector selector) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of theactivationRange
record component.double
Returns the value of thedeactivationRange
record component.Returns the value of theentitySelector
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.keyItem()
Returns the value of thekeyItem
record component.Returns the value of thelootTable
record component.Returns the value of theoverrideLootTableToDisplay
record component.Returns the value of theplayerDetector
record component.final String
toString()
Returns a string representation of this record class.private com.mojang.serialization.DataResult
<VaultConfig> validate()
-
Field Details
-
lootTable
The field for thelootTable
record component. -
activationRange
private final double activationRangeThe field for theactivationRange
record component. -
deactivationRange
private final double deactivationRangeThe field for thedeactivationRange
record component. -
keyItem
The field for thekeyItem
record component. -
overrideLootTableToDisplay
The field for theoverrideLootTableToDisplay
record component. -
playerDetector
The field for theplayerDetector
record component. -
entitySelector
The field for theentitySelector
record component. -
CONFIG_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldpr;a:Ljava/lang/String;
intermediary field_48881
Lnet/minecraft/class_9203;field_48881:Ljava/lang/String;
named CONFIG_KEY
Lnet/minecraft/block/vault/VaultConfig;CONFIG_KEY:Ljava/lang/String;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector official b
Ldpr;b:Ldpr;
intermediary field_48882
Lnet/minecraft/class_9203;field_48882:Lnet/minecraft/class_9203;
named DEFAULT
Lnet/minecraft/block/vault/VaultConfig;DEFAULT:Lnet/minecraft/block/vault/VaultConfig;
-
codec
- Mappings:
Namespace Name Mixin selector official c
Ldpr;c:Lcom/mojang/serialization/Codec;
intermediary field_48883
Lnet/minecraft/class_9203;field_48883:Lcom/mojang/serialization/Codec;
named codec
Lnet/minecraft/block/vault/VaultConfig;codec:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
VaultConfig
private VaultConfig() -
VaultConfig
public VaultConfig(RegistryKey<LootTable> lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<RegistryKey<LootTable>> overrideLootTableToDisplay) - Mappings:
Namespace Name Mixin selector official <init>
Ldpr;<init>(Lakg;DDLcsz;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_9203;<init>(Lnet/minecraft/class_5321;DDLnet/minecraft/class_1799;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/block/vault/VaultConfig;<init>(Lnet/minecraft/registry/RegistryKey;DDLnet/minecraft/item/ItemStack;Ljava/util/Optional;)V
-
VaultConfig
public VaultConfig(RegistryKey<LootTable> registryKey, double double2, double double3, ItemStack itemStack, Optional<RegistryKey<LootTable>> optional, EntityDetector entityDetector, EntityDetector.Selector selector)
-
-
Method Details
-
playerDetector
Returns the value of theplayerDetector
record component.- Returns:
- the value of the
playerDetector
record component
-
validate
- Mappings:
Namespace Name Mixin selector official h
Ldpr;h()Lcom/mojang/serialization/DataResult;
intermediary method_56765
Lnet/minecraft/class_9203;method_56765()Lcom/mojang/serialization/DataResult;
named validate
Lnet/minecraft/block/vault/VaultConfig;validate()Lcom/mojang/serialization/DataResult;
-
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 '=='. -
lootTable
Returns the value of thelootTable
record component.- Returns:
- the value of the
lootTable
record component
-
activationRange
public double activationRange()Returns the value of theactivationRange
record component.- Returns:
- the value of the
activationRange
record component
-
deactivationRange
public double deactivationRange()Returns the value of thedeactivationRange
record component.- Returns:
- the value of the
deactivationRange
record component
-
keyItem
Returns the value of thekeyItem
record component.- Returns:
- the value of the
keyItem
record component
-
overrideLootTableToDisplay
Returns the value of theoverrideLootTableToDisplay
record component.- Returns:
- the value of the
overrideLootTableToDisplay
record component
-
entitySelector
Returns the value of theentitySelector
record component.- Returns:
- the value of the
entitySelector
record component
-