Package net.minecraft.world.poi
Class PointOfInterestSet
java.lang.Object
net.minecraft.world.poi.PointOfInterestSet
- Mappings:
Namespace Name official bdointermediary net/minecraft/class_4157named net/minecraft/world/poi/PointOfInterestSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Loggerprivate Short2ObjectMap<PointOfInterest>private Map<PointOfInterestType,Set<PointOfInterest>>private Runnableprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionPointOfInterestSet(Runnable updateListener)privatePointOfInterestSet(Runnable updateListener, boolean valid, List<PointOfInterest> list) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BlockPos pos, PointOfInterestType type)private booleanadd(PointOfInterest poi)private voidclear()static com.mojang.serialization.Codec<PointOfInterestSet>createCodec(Runnable updateListener)get(Predicate<PointOfInterestType> predicate, PointOfInterestStorage.OccupationStatus occupationStatus)private Optional<PointOfInterest>(package private) booleanisValid()intmethod_35157(BlockPos blockPos)Deprecated.booleanreleaseTicket(BlockPos pos)voidbooleantest(BlockPos pos, Predicate<PointOfInterestType> predicate)voidupdatePointsOfInterest(Consumer<BiConsumer<BlockPos,PointOfInterestType>> consumer)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLbdo;a:Lorg/apache/logging/log4j/Logger;intermediary field_18496Lnet/minecraft/class_4157;field_18496:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/poi/PointOfInterestSet;LOGGER:Lorg/apache/logging/log4j/Logger;
-
pointsOfInterestByPos
- Mappings:
Namespace Name Mixin selector official bLbdo;b:Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;intermediary field_18497Lnet/minecraft/class_4157;field_18497:Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;named pointsOfInterestByPosLnet/minecraft/world/poi/PointOfInterestSet;pointsOfInterestByPos:Lit/unimi/dsi/fastutil/shorts/Short2ObjectMap;
-
pointsOfInterestByType
- Mappings:
Namespace Name Mixin selector official cLbdo;c:Ljava/util/Map;intermediary field_18498Lnet/minecraft/class_4157;field_18498:Ljava/util/Map;named pointsOfInterestByTypeLnet/minecraft/world/poi/PointOfInterestSet;pointsOfInterestByType:Ljava/util/Map;
-
updateListener
- Mappings:
Namespace Name Mixin selector official dLbdo;d:Ljava/lang/Runnable;intermediary field_18499Lnet/minecraft/class_4157;field_18499:Ljava/lang/Runnable;named updateListenerLnet/minecraft/world/poi/PointOfInterestSet;updateListener:Ljava/lang/Runnable;
-
valid
private boolean valid- Mappings:
Namespace Name Mixin selector official eLbdo;e:Zintermediary field_19226Lnet/minecraft/class_4157;field_19226:Znamed validLnet/minecraft/world/poi/PointOfInterestSet;valid:Z
-
-
Constructor Details
-
PointOfInterestSet
- Mappings:
Namespace Name Mixin selector official <init>Lbdo;<init>(Ljava/lang/Runnable;)Vintermediary <init>Lnet/minecraft/class_4157;<init>(Ljava/lang/Runnable;)Vnamed <init>Lnet/minecraft/world/poi/PointOfInterestSet;<init>(Ljava/lang/Runnable;)V
-
PointOfInterestSet
- Mappings:
Namespace Name Mixin selector official <init>Lbdo;<init>(Ljava/lang/Runnable;ZLjava/util/List;)Vintermediary <init>Lnet/minecraft/class_4157;<init>(Ljava/lang/Runnable;ZLjava/util/List;)Vnamed <init>Lnet/minecraft/world/poi/PointOfInterestSet;<init>(Ljava/lang/Runnable;ZLjava/util/List;)V
-
-
Method Details
-
createCodec
public static com.mojang.serialization.Codec<PointOfInterestSet> createCodec(Runnable updateListener)- Mappings:
Namespace Name Mixin selector official aLbdo;a(Ljava/lang/Runnable;)Lcom/mojang/serialization/Codec;intermediary method_28364Lnet/minecraft/class_4157;method_28364(Ljava/lang/Runnable;)Lcom/mojang/serialization/Codec;named createCodecLnet/minecraft/world/poi/PointOfInterestSet;createCodec(Ljava/lang/Runnable;)Lcom/mojang/serialization/Codec;
-
get
public Stream<PointOfInterest> get(Predicate<PointOfInterestType> predicate, PointOfInterestStorage.OccupationStatus occupationStatus)- Mappings:
Namespace Name Mixin selector official aLbdo;a(Ljava/util/function/Predicate;Lbdm$b;)Ljava/util/stream/Stream;intermediary method_19150Lnet/minecraft/class_4157;method_19150(Ljava/util/function/Predicate;Lnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;named getLnet/minecraft/world/poi/PointOfInterestSet;get(Ljava/util/function/Predicate;Lnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/stream/Stream;
-
add
- Mappings:
Namespace Name Mixin selector official aLbdo;a(Lgg;Lbdp;)Vintermediary method_19146Lnet/minecraft/class_4157;method_19146(Lnet/minecraft/class_2338;Lnet/minecraft/class_4158;)Vnamed addLnet/minecraft/world/poi/PointOfInterestSet;add(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/poi/PointOfInterestType;)V
-
add
- Mappings:
Namespace Name Mixin selector official aLbdo;a(Lbdn;)Zintermediary method_20350Lnet/minecraft/class_4157;method_20350(Lnet/minecraft/class_4156;)Znamed addLnet/minecraft/world/poi/PointOfInterestSet;add(Lnet/minecraft/world/poi/PointOfInterest;)Z
-
remove
- Mappings:
Namespace Name Mixin selector official aLbdo;a(Lgg;)Vintermediary method_19145Lnet/minecraft/class_4157;method_19145(Lnet/minecraft/class_2338;)Vnamed removeLnet/minecraft/world/poi/PointOfInterestSet;remove(Lnet/minecraft/util/math/BlockPos;)V
-
method_35157
Deprecated.- Mappings:
Namespace Name Mixin selector official bLbdo;b(Lgg;)Iintermediary method_35157Lnet/minecraft/class_4157;method_35157(Lnet/minecraft/class_2338;)Inamed method_35157Lnet/minecraft/world/poi/PointOfInterestSet;method_35157(Lnet/minecraft/util/math/BlockPos;)I
-
releaseTicket
- Mappings:
Namespace Name Mixin selector official cLbdo;c(Lgg;)Zintermediary method_19153Lnet/minecraft/class_4157;method_19153(Lnet/minecraft/class_2338;)Znamed releaseTicketLnet/minecraft/world/poi/PointOfInterestSet;releaseTicket(Lnet/minecraft/util/math/BlockPos;)Z
-
test
- Mappings:
Namespace Name Mixin selector official aLbdo;a(Lgg;Ljava/util/function/Predicate;)Zintermediary method_19147Lnet/minecraft/class_4157;method_19147(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Znamed testLnet/minecraft/world/poi/PointOfInterestSet;test(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
-
getType
- Mappings:
Namespace Name Mixin selector official dLbdo;d(Lgg;)Ljava/util/Optional;intermediary method_19154Lnet/minecraft/class_4157;method_19154(Lnet/minecraft/class_2338;)Ljava/util/Optional;named getTypeLnet/minecraft/world/poi/PointOfInterestSet;getType(Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
-
get
- Mappings:
Namespace Name Mixin selector official eLbdo;e(Lgg;)Ljava/util/Optional;intermediary method_33584Lnet/minecraft/class_4157;method_33584(Lnet/minecraft/class_2338;)Ljava/util/Optional;named getLnet/minecraft/world/poi/PointOfInterestSet;get(Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
-
updatePointsOfInterest
- Mappings:
Namespace Name Mixin selector official aLbdo;a(Ljava/util/function/Consumer;)Vintermediary method_20353Lnet/minecraft/class_4157;method_20353(Ljava/util/function/Consumer;)Vnamed updatePointsOfInterestLnet/minecraft/world/poi/PointOfInterestSet;updatePointsOfInterest(Ljava/util/function/Consumer;)V
-
clear
private void clear()- Mappings:
Namespace Name Mixin selector official bLbdo;b()Vintermediary method_20395Lnet/minecraft/class_4157;method_20395()Vnamed clearLnet/minecraft/world/poi/PointOfInterestSet;clear()V
-
isValid
boolean isValid()- Mappings:
Namespace Name Mixin selector official aLbdo;a()Zintermediary method_22444Lnet/minecraft/class_4157;method_22444()Znamed isValidLnet/minecraft/world/poi/PointOfInterestSet;isValid()Z
-