Package net.minecraft.world.poi
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 bxp
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 Summary
Modifier and TypeFieldDescriptionprivate final Set<BlockState>
The field for theblockStates
record component.static final Predicate<RegistryEntry<PointOfInterestType>>
private final int
The field for thesearchDistance
record component.private final int
The field for theticketCount
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockStates
record component.boolean
contains
(BlockState state) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thesearchDistance
record component.int
Returns the value of theticketCount
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
blockStates
The field for theblockStates
record component. -
ticketCount
private final int ticketCountThe field for theticketCount
record component. -
searchDistance
private final int searchDistanceThe field for thesearchDistance
record component. -
NONE
- Mappings:
Namespace Name Mixin selector official a
Lbxp;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
-
-
Method Details
-
contains
- Mappings:
Namespace Name Mixin selector official a
Lbxp;a(Ldjh;)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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
blockStates
Returns the value of theblockStates
record component.- Returns:
- the value of the
blockStates
record component
-
ticketCount
public int ticketCount()Returns the value of theticketCount
record component.- Returns:
- the value of the
ticketCount
record component
-
searchDistance
public int searchDistance()Returns the value of thesearchDistance
record component.- Returns:
- the value of the
searchDistance
record component
-