Package net.minecraft.world.poi
Class PointOfInterestType
java.lang.Object
net.minecraft.world.poi.PointOfInterestType
public class PointOfInterestType extends Object
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
PointOfInterestType(String id, Set<BlockState> blockStates, int ticketCount, int searchDistance)
private
PointOfInterestType(String id, Set<BlockState> blockStates, int ticketCount, Predicate<PointOfInterestType> completionCondition, int searchDistance)
-
Method Summary
Modifier and Type Method Description static Optional<PointOfInterestType>
from(BlockState state)
private static Set<BlockState>
getAllStatesOf(Block block)
Predicate<PointOfInterestType>
getCompletionCondition()
int
getSearchDistance()
int
getTicketCount()
private static PointOfInterestType
register(String id, Set<BlockState> workStationStates, int ticketCount, int searchDistance)
private static PointOfInterestType
register(String id, Set<BlockState> workStationStates, int ticketCount, Predicate<PointOfInterestType> completionCondition, int searchDistance)
private static PointOfInterestType
setup(PointOfInterestType pointOfInterestType)
String
toString()
-
Field Details
-
VILLAGER_WORKSTATIONS
-
IS_USED_BY_PROFESSION
-
ALWAYS_TRUE
-
BED_STATES
-
BLOCK_STATE_TO_POINT_OF_INTEREST_TYPE
-
UNEMPLOYED
-
ARMORER
-
BUTCHER
-
CARTOGRAPHER
-
CLERIC
-
FARMER
-
FISHERMAN
-
FLETCHER
-
LEATHERWORKER
-
LIBRARIAN
-
MASON
-
NITWIT
-
SHEPHERD
-
TOOLSMITH
-
WEAPONSMITH
-
HOME
-
MEETING
-
BEEHIVE
-
BEE_NEST
-
NETHER_PORTAL
-
LODESTONE
-
REGISTERED_STATES
-
id
-
blockStates
-
ticketCount
private final int ticketCount -
completionCondition
-
searchDistance
private final int searchDistance
-
-
Constructor Details
-
PointOfInterestType
private PointOfInterestType(String id, Set<BlockState> blockStates, int ticketCount, Predicate<PointOfInterestType> completionCondition, int searchDistance) -
PointOfInterestType
private PointOfInterestType(String id, Set<BlockState> blockStates, int ticketCount, int searchDistance)
-
-
Method Details
-
getAllStatesOf
-
getTicketCount
public int getTicketCount() -
getCompletionCondition
-
getSearchDistance
public int getSearchDistance() -
toString
-
register
private static PointOfInterestType register(String id, Set<BlockState> workStationStates, int ticketCount, int searchDistance) -
register
private static PointOfInterestType register(String id, Set<BlockState> workStationStates, int ticketCount, Predicate<PointOfInterestType> completionCondition, int searchDistance) -
setup
-
from
-