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 bxpintermediary net/minecraft/class_4158named net/minecraft/world/poi/PointOfInterestTypeofficial bintermediary comp_815named blockStatesofficial cintermediary comp_816named ticketCountofficial dintermediary comp_817named searchDistance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<BlockState>The field for theblockStatesrecord component.static final Predicate<RegistryEntry<PointOfInterestType>>private final intThe field for thesearchDistancerecord component.private final intThe field for theticketCountrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockStatesrecord component.booleancontains(BlockState state) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thesearchDistancerecord component.intReturns the value of theticketCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockStates
The field for theblockStatesrecord component. -
ticketCount
private final int ticketCountThe field for theticketCountrecord component. -
searchDistance
private final int searchDistanceThe field for thesearchDistancerecord component. -
NONE
- Mappings:
Namespace Name Mixin selector official aLbxp;a:Ljava/util/function/Predicate;intermediary field_39277Lnet/minecraft/class_4158;field_39277:Ljava/util/function/Predicate;named NONELnet/minecraft/world/poi/PointOfInterestType;NONE:Ljava/util/function/Predicate;
-
-
Constructor Details
-
PointOfInterestType
-
-
Method Details
-
contains
- Mappings:
Namespace Name Mixin selector official aLbxp;a(Ldjh;)Zintermediary method_35159Lnet/minecraft/class_4158;method_35159(Lnet/minecraft/class_2680;)Znamed containsLnet/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 theblockStatesrecord component.- Returns:
- the value of the
blockStatesrecord component
-
ticketCount
public int ticketCount()Returns the value of theticketCountrecord component.- Returns:
- the value of the
ticketCountrecord component
-
searchDistance
public int searchDistance()Returns the value of thesearchDistancerecord component.- Returns:
- the value of the
searchDistancerecord component
-