Package net.minecraft.village
Class PointOfInterestType
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<PointOfInterestType>
-
- net.minecraft.village.PointOfInterestType
-
- All Implemented Interfaces:
IForgeRegistryEntry<PointOfInterestType>
public class PointOfInterestType extends ForgeRegistryEntry<PointOfInterestType>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description PointOfInterestType(java.lang.String p_i225712_1_, java.util.Set<BlockState> p_i225712_2_, int p_i225712_3_, int p_i225712_4_)
PointOfInterestType(java.lang.String p_i225713_1_, java.util.Set<BlockState> p_i225713_2_, int p_i225713_3_, java.util.function.Predicate<PointOfInterestType> p_i225713_4_, int p_i225713_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<PointOfInterestType>
forState(BlockState p_221047_0_)
com.google.common.collect.ImmutableSet<BlockState>
getBlockStates()
static java.util.Set<BlockState>
getBlockStates(Block p_221042_0_)
int
getMaxTickets()
java.util.function.Predicate<PointOfInterestType>
getPredicate()
int
getValidRange()
private static PointOfInterestType
register(java.lang.String p_226359_0_, java.util.Set<BlockState> p_226359_1_, int p_226359_2_, int p_226359_3_)
private static PointOfInterestType
register(java.lang.String p_226360_0_, java.util.Set<BlockState> p_226360_1_, int p_226360_2_, java.util.function.Predicate<PointOfInterestType> p_226360_3_, int p_226360_4_)
private static PointOfInterestType
registerBlockStates(PointOfInterestType p_221052_0_)
java.lang.String
toString()
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Field Detail
-
ALL_JOB_POI_TYPES
private static final java.util.function.Supplier<java.util.Set<PointOfInterestType>> ALL_JOB_POI_TYPES
-
ALL_JOBS
public static final java.util.function.Predicate<PointOfInterestType> ALL_JOBS
-
ALL
public static final java.util.function.Predicate<PointOfInterestType> ALL
-
BEDS
private static final java.util.Set<BlockState> BEDS
-
TYPE_BY_STATE
private static final java.util.Map<BlockState,PointOfInterestType> TYPE_BY_STATE
-
UNEMPLOYED
public static final PointOfInterestType UNEMPLOYED
-
ARMORER
public static final PointOfInterestType ARMORER
-
BUTCHER
public static final PointOfInterestType BUTCHER
-
CARTOGRAPHER
public static final PointOfInterestType CARTOGRAPHER
-
CLERIC
public static final PointOfInterestType CLERIC
-
FARMER
public static final PointOfInterestType FARMER
-
FISHERMAN
public static final PointOfInterestType FISHERMAN
-
FLETCHER
public static final PointOfInterestType FLETCHER
-
LEATHERWORKER
public static final PointOfInterestType LEATHERWORKER
-
LIBRARIAN
public static final PointOfInterestType LIBRARIAN
-
MASON
public static final PointOfInterestType MASON
-
NITWIT
public static final PointOfInterestType NITWIT
-
SHEPHERD
public static final PointOfInterestType SHEPHERD
-
TOOLSMITH
public static final PointOfInterestType TOOLSMITH
-
WEAPONSMITH
public static final PointOfInterestType WEAPONSMITH
-
HOME
public static final PointOfInterestType HOME
-
MEETING
public static final PointOfInterestType MEETING
-
BEEHIVE
public static final PointOfInterestType BEEHIVE
-
BEE_NEST
public static final PointOfInterestType BEE_NEST
-
NETHER_PORTAL
public static final PointOfInterestType NETHER_PORTAL
-
LODESTONE
public static final PointOfInterestType LODESTONE
-
ALL_STATES
protected static final java.util.Set<BlockState> ALL_STATES
-
name
private final java.lang.String name
-
matchingStates
private final java.util.Set<BlockState> matchingStates
-
maxTickets
private final int maxTickets
-
predicate
private final java.util.function.Predicate<PointOfInterestType> predicate
-
validRange
private final int validRange
-
-
Constructor Detail
-
PointOfInterestType
public PointOfInterestType(java.lang.String p_i225713_1_, java.util.Set<BlockState> p_i225713_2_, int p_i225713_3_, java.util.function.Predicate<PointOfInterestType> p_i225713_4_, int p_i225713_5_)
-
PointOfInterestType
public PointOfInterestType(java.lang.String p_i225712_1_, java.util.Set<BlockState> p_i225712_2_, int p_i225712_3_, int p_i225712_4_)
-
-
Method Detail
-
getBlockStates
public static java.util.Set<BlockState> getBlockStates(Block p_221042_0_)
-
getMaxTickets
public int getMaxTickets()
-
getPredicate
public java.util.function.Predicate<PointOfInterestType> getPredicate()
-
getValidRange
public int getValidRange()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
register
private static PointOfInterestType register(java.lang.String p_226359_0_, java.util.Set<BlockState> p_226359_1_, int p_226359_2_, int p_226359_3_)
-
register
private static PointOfInterestType register(java.lang.String p_226360_0_, java.util.Set<BlockState> p_226360_1_, int p_226360_2_, java.util.function.Predicate<PointOfInterestType> p_226360_3_, int p_226360_4_)
-
registerBlockStates
private static PointOfInterestType registerBlockStates(PointOfInterestType p_221052_0_)
-
forState
public static java.util.Optional<PointOfInterestType> forState(BlockState p_221047_0_)
-
getBlockStates
public com.google.common.collect.ImmutableSet<BlockState> getBlockStates()
-
-