Class EnvironmentAttribute<Value>

java.lang.Object
net.minecraft.world.attribute.EnvironmentAttribute<Value>

public class EnvironmentAttribute<Value> extends Object
Mappings:
Namespace Name
named net/minecraft/world/attribute/EnvironmentAttribute
intermediary net/minecraft/class_12197
official cdy
  • Field Details

    • type

      private final EnvironmentAttributeType<Value> type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/world/attribute/EnvironmentAttribute;type:Lnet/minecraft/world/attribute/EnvironmentAttributeType;
      intermediary field_63712 Lnet/minecraft/class_12197;field_63712:Lnet/minecraft/class_12192;
      official a Lcdy;a:Lcdu;
    • defaultValue

      private final Value defaultValue
      Mappings:
      Namespace Name Mixin selector
      named defaultValue Lnet/minecraft/world/attribute/EnvironmentAttribute;defaultValue:Ljava/lang/Object;
      intermediary field_63713 Lnet/minecraft/class_12197;field_63713:Ljava/lang/Object;
      official b Lcdy;b:Ljava/lang/Object;
    • validator

      private final AttributeValidator<Value> validator
      Mappings:
      Namespace Name Mixin selector
      named validator Lnet/minecraft/world/attribute/EnvironmentAttribute;validator:Lnet/minecraft/world/attribute/AttributeValidator;
      intermediary field_63714 Lnet/minecraft/class_12197;field_63714:Lnet/minecraft/class_12191;
      official c Lcdy;c:Lcdt;
    • synced

      private final boolean synced
      Mappings:
      Namespace Name Mixin selector
      named synced Lnet/minecraft/world/attribute/EnvironmentAttribute;synced:Z
      intermediary field_63715 Lnet/minecraft/class_12197;field_63715:Z
      official d Lcdy;d:Z
    • positional

      private final boolean positional
      Mappings:
      Namespace Name Mixin selector
      named positional Lnet/minecraft/world/attribute/EnvironmentAttribute;positional:Z
      intermediary field_63716 Lnet/minecraft/class_12197;field_63716:Z
      official e Lcdy;e:Z
    • interpolated

      private final boolean interpolated
      Mappings:
      Namespace Name Mixin selector
      named interpolated Lnet/minecraft/world/attribute/EnvironmentAttribute;interpolated:Z
      intermediary field_63717 Lnet/minecraft/class_12197;field_63717:Z
      official f Lcdy;f:Z
  • Constructor Details

    • EnvironmentAttribute

      EnvironmentAttribute(EnvironmentAttributeType<Value> type, Value defaultValue, AttributeValidator<Value> validator, boolean synced, boolean positional, boolean interpolated)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/attribute/EnvironmentAttribute;<init>(Lnet/minecraft/world/attribute/EnvironmentAttributeType;Ljava/lang/Object;Lnet/minecraft/world/attribute/AttributeValidator;ZZZ)V
      intermediary <init> Lnet/minecraft/class_12197;<init>(Lnet/minecraft/class_12192;Ljava/lang/Object;Lnet/minecraft/class_12191;ZZZ)V
      official <init> Lcdy;<init>(Lcdu;Ljava/lang/Object;Lcdt;ZZZ)V
  • Method Details

    • builder

      public static <Value> EnvironmentAttribute.Builder<Value> builder(EnvironmentAttributeType<Value> type)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/world/attribute/EnvironmentAttribute;builder(Lnet/minecraft/world/attribute/EnvironmentAttributeType;)Lnet/minecraft/world/attribute/EnvironmentAttribute$Builder;
      intermediary method_75648 Lnet/minecraft/class_12197;method_75648(Lnet/minecraft/class_12192;)Lnet/minecraft/class_12197$class_12198;
      official a Lcdy;a(Lcdu;)Lcdy$a;
    • getType

      public EnvironmentAttributeType<Value> getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/attribute/EnvironmentAttribute;getType()Lnet/minecraft/world/attribute/EnvironmentAttributeType;
      intermediary method_75647 Lnet/minecraft/class_12197;method_75647()Lnet/minecraft/class_12192;
      official a Lcdy;a()Lcdu;
    • getDefaultValue

      public Value getDefaultValue()
      Mappings:
      Namespace Name Mixin selector
      named getDefaultValue Lnet/minecraft/world/attribute/EnvironmentAttribute;getDefaultValue()Ljava/lang/Object;
      intermediary method_75650 Lnet/minecraft/class_12197;method_75650()Ljava/lang/Object;
      official b Lcdy;b()Ljava/lang/Object;
    • getCodec

      public com.mojang.serialization.Codec<Value> getCodec()
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/world/attribute/EnvironmentAttribute;getCodec()Lcom/mojang/serialization/Codec;
      intermediary method_75651 Lnet/minecraft/class_12197;method_75651()Lcom/mojang/serialization/Codec;
      official c Lcdy;c()Lcom/mojang/serialization/Codec;
    • clamp

      public Value clamp(Value value)
      Mappings:
      Namespace Name Mixin selector
      named clamp Lnet/minecraft/world/attribute/EnvironmentAttribute;clamp(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_75649 Lnet/minecraft/class_12197;method_75649(Ljava/lang/Object;)Ljava/lang/Object;
      official a Lcdy;a(Ljava/lang/Object;)Ljava/lang/Object;
    • isSynced

      public boolean isSynced()
      Mappings:
      Namespace Name Mixin selector
      named isSynced Lnet/minecraft/world/attribute/EnvironmentAttribute;isSynced()Z
      intermediary method_75652 Lnet/minecraft/class_12197;method_75652()Z
      official d Lcdy;d()Z
    • isPositional

      public boolean isPositional()
      Mappings:
      Namespace Name Mixin selector
      named isPositional Lnet/minecraft/world/attribute/EnvironmentAttribute;isPositional()Z
      intermediary method_75653 Lnet/minecraft/class_12197;method_75653()Z
      official e Lcdy;e()Z
    • isInterpolated

      public boolean isInterpolated()
      Mappings:
      Namespace Name Mixin selector
      named isInterpolated Lnet/minecraft/world/attribute/EnvironmentAttribute;isInterpolated()Z
      intermediary method_75654 Lnet/minecraft/class_12197;method_75654()Z
      official f Lcdy;f()Z
    • toString

      public String toString()
      Overrides:
      toString in class Object