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 cdv
  • 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 Lcdv;a:Lcdr;
    • 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 Lcdv;b:Ljava/lang/Object;
    • range

      private final Range<Value> range
      Mappings:
      Namespace Name Mixin selector
      named range Lnet/minecraft/world/attribute/EnvironmentAttribute;range:Lnet/minecraft/world/attribute/Range;
      intermediary field_63714 Lnet/minecraft/class_12197;field_63714:Lnet/minecraft/class_12191;
      official c Lcdv;c:Lcdq;
    • sentThroughNetwork

      private final boolean sentThroughNetwork
      Mappings:
      Namespace Name Mixin selector
      named sentThroughNetwork Lnet/minecraft/world/attribute/EnvironmentAttribute;sentThroughNetwork:Z
      intermediary field_63715 Lnet/minecraft/class_12197;field_63715:Z
      official d Lcdv;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 Lcdv;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 Lcdv;f:Z
  • Constructor Details

    • EnvironmentAttribute

      EnvironmentAttribute(EnvironmentAttributeType<Value> type, Value defaultValue, Range<Value> range, boolean sentThroughNetwork, 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/Range;ZZZ)V
      intermediary <init> Lnet/minecraft/class_12197;<init>(Lnet/minecraft/class_12192;Ljava/lang/Object;Lnet/minecraft/class_12191;ZZZ)V
      official <init> Lcdv;<init>(Lcdr;Ljava/lang/Object;Lcdq;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 Lcdv;a(Lcdr;)Lcdv$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 Lcdv;a()Lcdr;
    • 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 Lcdv;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 Lcdv;c()Lcom/mojang/serialization/Codec;
    • clampToRange

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

      public boolean isSentThroughNetwork()
      Mappings:
      Namespace Name Mixin selector
      named isSentThroughNetwork Lnet/minecraft/world/attribute/EnvironmentAttribute;isSentThroughNetwork()Z
      intermediary method_75652 Lnet/minecraft/class_12197;method_75652()Z
      official d Lcdv;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 Lcdv;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 Lcdv;f()Z
    • toString

      public String toString()
      Overrides:
      toString in class Object