Record Class VanillaTerrainParameters.class_7074

java.lang.Object
java.lang.Record
net.minecraft.world.biome.source.util.VanillaTerrainParameters.class_7074
Record Components:
function -
All Implemented Interfaces:
ToFloatFunction<VanillaTerrainParameters.class_7075>
Enclosing class:
VanillaTerrainParameters

public static record VanillaTerrainParameters.class_7074(RegistryEntry<DensityFunction> function) extends Record implements ToFloatFunction<VanillaTerrainParameters.class_7075>
Mappings:
Namespace Name
official cce$b
intermediary net/minecraft/class_6555$class_7074
named net/minecraft/world/biome/source/util/VanillaTerrainParameters$class_7074
official a
intermediary comp_524
named function
  • Field Details

    • function

      private final RegistryEntry<DensityFunction> function
      The field for the function record component.
    • field_37253

      static final com.mojang.serialization.Codec<ToFloatFunction<VanillaTerrainParameters.class_7075>> field_37253
      Mappings:
      Namespace Name Mixin selector
      official b Lcce$b;b:Lcom/mojang/serialization/Codec;
      intermediary field_37253 Lnet/minecraft/class_6555$class_7074;field_37253:Lcom/mojang/serialization/Codec;
      named field_37253 Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$class_7074;field_37253:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • apply

      public float apply(VanillaTerrainParameters.class_7075 class_7075)
      Specified by:
      apply in interface ToFloatFunction<VanillaTerrainParameters.class_7075>
      Mappings:
      Namespace Name Mixin selector
      official a Lcce$b;a(Lcce$d;)F
      intermediary method_41193 Lnet/minecraft/class_6555$class_7074;method_41193(Lnet/minecraft/class_6555$class_7075;)F
      named apply Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$class_7074;apply(Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$class_7075;)F
    • method_41194

      Mappings:
      Namespace Name Mixin selector
      official a Lcce$b;a(Lctp$e;)Lcce$b;
      intermediary method_41194 Lnet/minecraft/class_6555$class_7074;method_41194(Lnet/minecraft/class_6910$class_6915;)Lnet/minecraft/class_6555$class_7074;
      named method_41194 Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$class_7074;method_41194(Lnet/minecraft/world/gen/densityfunction/DensityFunction$DensityFunctionVisitor;)Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$class_7074;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • function

      public RegistryEntry<DensityFunction> function()
      Returns the value of the function record component.
      Returns:
      the value of the function record component