public class PointOfInterestType extends Object
Modifier | Constructor and 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) |
Modifier and Type | Method and 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() |
private static final Supplier<Set<PointOfInterestType>> VILLAGER_WORKSTATIONS
public static final Predicate<PointOfInterestType> IS_USED_BY_PROFESSION
public static final Predicate<PointOfInterestType> ALWAYS_TRUE
private static final Set<BlockState> BED_STATES
private static final Map<BlockState,PointOfInterestType> BLOCK_STATE_TO_POINT_OF_INTEREST_TYPE
public static final PointOfInterestType UNEMPLOYED
public static final PointOfInterestType ARMORER
public static final PointOfInterestType BUTCHER
public static final PointOfInterestType CARTOGRAPHER
public static final PointOfInterestType CLERIC
public static final PointOfInterestType FARMER
public static final PointOfInterestType FISHERMAN
public static final PointOfInterestType FLETCHER
public static final PointOfInterestType LEATHERWORKER
public static final PointOfInterestType LIBRARIAN
public static final PointOfInterestType MASON
public static final PointOfInterestType NITWIT
public static final PointOfInterestType SHEPHERD
public static final PointOfInterestType TOOLSMITH
public static final PointOfInterestType WEAPONSMITH
public static final PointOfInterestType HOME
public static final PointOfInterestType MEETING
public static final PointOfInterestType BEEHIVE
public static final PointOfInterestType BEE_NEST
public static final PointOfInterestType NETHER_PORTAL
public static final PointOfInterestType LODESTONE
protected static final Set<BlockState> REGISTERED_STATES
private final String id
private final Set<BlockState> blockStates
private final int ticketCount
private final Predicate<PointOfInterestType> completionCondition
private final int searchDistance
private PointOfInterestType(String id, Set<BlockState> blockStates, int ticketCount, Predicate<PointOfInterestType> completionCondition, int searchDistance)
private PointOfInterestType(String id, Set<BlockState> blockStates, int ticketCount, int searchDistance)
private static Set<BlockState> getAllStatesOf(Block block)
public int getTicketCount()
public Predicate<PointOfInterestType> getCompletionCondition()
public int getSearchDistance()
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)
public static Optional<PointOfInterestType> from(BlockState state)