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 dlointermediary net/minecraft/class_9203named net/minecraft/class_9203official 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.private final doubleThe field for thedeactivationRangerecord component.private final EntityDetector.class_9198The field for theentitySelectorrecord component.(package private) static final String(package private) static class_9203(package private) static com.mojang.serialization.Codec<class_9203>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
ConstructorsModifierConstructorDescriptionprivateclass_9203(Identifier identifier, double double2, double double3, ItemStack itemStack, Optional<Identifier> optional) class_9203(Identifier identifier, double double2, double double3, ItemStack itemStack, Optional<Identifier> optional, EntityDetector entityDetector, EntityDetector.class_9198 class_9198) -
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.private com.mojang.serialization.DataResult<class_9203>Returns the value of theoverrideLootTableToDisplayrecord component.Returns the value of theplayerDetectorrecord component.final StringtoString()Returns a string representation of this record class.
-
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. -
field_48881
- See Also:
- Mappings:
Namespace Name Mixin selector official aLdlo;a:Ljava/lang/String;intermediary field_48881Lnet/minecraft/class_9203;field_48881:Ljava/lang/String;named field_48881Lnet/minecraft/class_9203;field_48881:Ljava/lang/String;
-
field_48882
- Mappings:
Namespace Name Mixin selector official bLdlo;b:Ldlo;intermediary field_48882Lnet/minecraft/class_9203;field_48882:Lnet/minecraft/class_9203;named field_48882Lnet/minecraft/class_9203;field_48882:Lnet/minecraft/class_9203;
-
field_48883
- Mappings:
Namespace Name Mixin selector official cLdlo;c:Lcom/mojang/serialization/Codec;intermediary field_48883Lnet/minecraft/class_9203;field_48883:Lcom/mojang/serialization/Codec;named field_48883Lnet/minecraft/class_9203;field_48883:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9203
private class_9203() -
class_9203
public class_9203(Identifier identifier, double double2, double double3, ItemStack itemStack, Optional<Identifier> optional) -
class_9203
public class_9203(Identifier identifier, double double2, double double3, ItemStack itemStack, Optional<Identifier> optional, EntityDetector entityDetector, EntityDetector.class_9198 class_9198)
-
-
Method Details
-
playerDetector
Returns the value of theplayerDetectorrecord component.- Returns:
- the value of the
playerDetectorrecord component
-
method_56765
- Mappings:
Namespace Name Mixin selector official hLdlo;h()Lcom/mojang/serialization/DataResult;intermediary method_56765Lnet/minecraft/class_9203;method_56765()Lcom/mojang/serialization/DataResult;named method_56765Lnet/minecraft/class_9203;method_56765()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
-