Record Class UnobstructedBlockPredicate

java.lang.Object
java.lang.Record
net.minecraft.world.gen.blockpredicate.UnobstructedBlockPredicate
Record Components:
offset -
All Implemented Interfaces:
BiPredicate<StructureWorldAccess,BlockPos>, BlockPredicate

record UnobstructedBlockPredicate(Vec3i offset) extends Record implements BlockPredicate
Mappings:
Namespace Name
named net/minecraft/world/gen/blockpredicate/UnobstructedBlockPredicate
intermediary net/minecraft/class_9751
official eap
named offset
intermediary comp_2779
official e
  • Field Details

    • offset

      private final Vec3i offset
      The field for the offset record component.
    • CODEC

      public static com.mojang.serialization.MapCodec<UnobstructedBlockPredicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/blockpredicate/UnobstructedBlockPredicate;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_51789 Lnet/minecraft/class_9751;field_51789:Lcom/mojang/serialization/MapCodec;
      official a Leap;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • UnobstructedBlockPredicate

      UnobstructedBlockPredicate(Vec3i vec3i)
  • Method Details

    • getType

      public BlockPredicateType<?> getType()
      Specified by:
      getType in interface BlockPredicate
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;getType()Lnet/minecraft/world/gen/blockpredicate/BlockPredicateType;
      intermediary method_38873 Lnet/minecraft/class_6646;method_38873()Lnet/minecraft/class_6647;
      official a Leac;a()Lead;
    • test

      public boolean test(StructureWorldAccess structureWorldAccess, BlockPos blockPos)
      Specified by:
      test in interface BiPredicate<StructureWorldAccess,BlockPos>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/world/gen/blockpredicate/UnobstructedBlockPredicate;test(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_60287 Lnet/minecraft/class_9751;method_60287(Lnet/minecraft/class_5281;Lnet/minecraft/class_2338;)Z
      official a Leap;a(Lddq;Ljd;)Z
    • 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.
    • offset

      public Vec3i offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component