Record Class PointOfInterestType

java.lang.Object
java.lang.Record
net.minecraft.world.poi.PointOfInterestType
Record Components:
blockStates -
ticketCount -
searchDistance -

public record PointOfInterestType(Set<BlockState> blockStates, int ticketCount, int searchDistance) extends Record
Mappings:
Namespace Name
official bpf
intermediary net/minecraft/class_4158
named net/minecraft/world/poi/PointOfInterestType
official b
intermediary comp_815
named blockStates
official c
intermediary comp_816
named ticketCount
official d
intermediary comp_817
named searchDistance
  • Field Details

    • blockStates

      private final Set<BlockState> blockStates
      The field for the blockStates record component.
    • ticketCount

      private final int ticketCount
      The field for the ticketCount record component.
    • searchDistance

      private final int searchDistance
      The field for the searchDistance record component.
    • NONE

      public static final Predicate<RegistryEntry<PointOfInterestType>> NONE
      Mappings:
      Namespace Name Mixin selector
      official a Lbpf;a:Ljava/util/function/Predicate;
      intermediary field_39277 Lnet/minecraft/class_4158;field_39277:Ljava/util/function/Predicate;
      named NONE Lnet/minecraft/world/poi/PointOfInterestType;NONE:Ljava/util/function/Predicate;
  • Constructor Details

    • PointOfInterestType

      public PointOfInterestType(Set<BlockState> set, int int2, int int3)
  • Method Details

    • contains

      public boolean contains(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpf;a(Lcyt;)Z
      intermediary method_35159 Lnet/minecraft/class_4158;method_35159(Lnet/minecraft/class_2680;)Z
      named contains Lnet/minecraft/world/poi/PointOfInterestType;contains(Lnet/minecraft/block/BlockState;)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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • blockStates

      public Set<BlockState> blockStates()
      Returns the value of the blockStates record component.
      Returns:
      the value of the blockStates record component
    • ticketCount

      public int ticketCount()
      Returns the value of the ticketCount record component.
      Returns:
      the value of the ticketCount record component
    • searchDistance

      public int searchDistance()
      Returns the value of the searchDistance record component.
      Returns:
      the value of the searchDistance record component