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(Identifier lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<Identifier> overrideLootTableToDisplay, EntityDetector playerDetector, EntityDetector.Selector entitySelector)
extends Record
- Mappings:
Namespace Name official dosintermediary net/minecraft/class_9203named net/minecraft/block/vault/VaultConfigofficial dintermediary comp_2305named lootTableofficial eintermediary comp_2306named activationRangeofficial fintermediary comp_2307named deactivationRangeofficial gintermediary comp_2308named keyItemofficial hintermediary comp_2309named overrideLootTableToDisplayofficial iintermediary comp_2310named playerDetectorofficial jintermediary comp_2311named entitySelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for theactivationRangerecord component.(package private) static com.mojang.serialization.Codec<VaultConfig> (package private) static final Stringprivate final doubleThe field for thedeactivationRangerecord component.(package private) static VaultConfigprivate final EntityDetector.SelectorThe field for theentitySelectorrecord component.private final ItemStackThe field for thekeyItemrecord component.private final IdentifierThe field for thelootTablerecord component.private final Optional<Identifier> The field for theoverrideLootTableToDisplayrecord component.private final EntityDetectorThe field for theplayerDetectorrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVaultConfig(Identifier lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<Identifier> overrideLootTableToDisplay) VaultConfig(Identifier identifier, double double2, double double3, ItemStack itemStack, Optional<Identifier> optional, EntityDetector entityDetector, EntityDetector.Selector selector) -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theactivationRangerecord component.doubleReturns the value of thedeactivationRangerecord component.Returns the value of theentitySelectorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keyItem()Returns the value of thekeyItemrecord component.Returns the value of thelootTablerecord component.Returns the value of theoverrideLootTableToDisplayrecord component.Returns the value of theplayerDetectorrecord component.final StringtoString()Returns a string representation of this record class.private com.mojang.serialization.DataResult<VaultConfig> validate()
-
Field Details
-
lootTable
The field for thelootTablerecord component. -
activationRange
private final double activationRangeThe field for theactivationRangerecord component. -
deactivationRange
private final double deactivationRangeThe field for thedeactivationRangerecord component. -
keyItem
The field for thekeyItemrecord component. -
overrideLootTableToDisplay
The field for theoverrideLootTableToDisplayrecord component. -
playerDetector
The field for theplayerDetectorrecord component. -
entitySelector
The field for theentitySelectorrecord component. -
CONFIG_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official aLdos;a:Ljava/lang/String;intermediary field_48881Lnet/minecraft/class_9203;field_48881:Ljava/lang/String;named CONFIG_KEYLnet/minecraft/block/vault/VaultConfig;CONFIG_KEY:Ljava/lang/String;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector official bLdos;b:Ldos;intermediary field_48882Lnet/minecraft/class_9203;field_48882:Lnet/minecraft/class_9203;named DEFAULTLnet/minecraft/block/vault/VaultConfig;DEFAULT:Lnet/minecraft/block/vault/VaultConfig;
-
codec
- Mappings:
Namespace Name Mixin selector official cLdos;c:Lcom/mojang/serialization/Codec;intermediary field_48883Lnet/minecraft/class_9203;field_48883:Lcom/mojang/serialization/Codec;named codecLnet/minecraft/block/vault/VaultConfig;codec:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
VaultConfig
private VaultConfig() -
VaultConfig
public VaultConfig(Identifier lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<Identifier> overrideLootTableToDisplay) - Mappings:
Namespace Name Mixin selector official <init>Ldos;<init>(Lajv;DDLcrs;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_9203;<init>(Lnet/minecraft/class_2960;DDLnet/minecraft/class_1799;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/block/vault/VaultConfig;<init>(Lnet/minecraft/util/Identifier;DDLnet/minecraft/item/ItemStack;Ljava/util/Optional;)V
-
VaultConfig
public VaultConfig(Identifier identifier, double double2, double double3, ItemStack itemStack, Optional<Identifier> optional, EntityDetector entityDetector, EntityDetector.Selector selector)
-
-
Method Details
-
playerDetector
Returns the value of theplayerDetectorrecord component.- Returns:
- the value of the
playerDetectorrecord component
-
validate
- Mappings:
Namespace Name Mixin selector official hLdos;h()Lcom/mojang/serialization/DataResult;intermediary method_56765Lnet/minecraft/class_9203;method_56765()Lcom/mojang/serialization/DataResult;named validateLnet/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 thelootTablerecord component.- Returns:
- the value of the
lootTablerecord component
-
activationRange
public double activationRange()Returns the value of theactivationRangerecord component.- Returns:
- the value of the
activationRangerecord component
-
deactivationRange
public double deactivationRange()Returns the value of thedeactivationRangerecord component.- Returns:
- the value of the
deactivationRangerecord component
-
keyItem
Returns the value of thekeyItemrecord component.- Returns:
- the value of the
keyItemrecord component
-
overrideLootTableToDisplay
Returns the value of theoverrideLootTableToDisplayrecord component.- Returns:
- the value of the
overrideLootTableToDisplayrecord component
-
entitySelector
Returns the value of theentitySelectorrecord component.- Returns:
- the value of the
entitySelectorrecord component
-