Interface LodestoneTracker
@NonExtendable
public interface LodestoneTracker
If present, specifies the target Lodestone that a Compass should point towards.
- Since:
- 1.21.3
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@Nullable Locationlocation()The location that the compass should point towards.static LodestoneTracker.Builderstatic LodestoneTrackerlodestoneTracker(@Nullable Location location, boolean tracked) booleantracked()Iftrue, when the Lodestone at the target position is removed, the component will be removed.
-
Method Details
-
lodestoneTracker
@Contract(value="_, _ -> new", pure=true) static LodestoneTracker lodestoneTracker(@Nullable Location location, boolean tracked) - Since:
- 1.21.3
-
lodestoneTracker
- Since:
- 1.21.3
-
location
The location that the compass should point towards.- Returns:
- location
- Since:
- 1.21.3
-
tracked
@Contract(pure=true) boolean tracked()Iftrue, when the Lodestone at the target position is removed, the component will be removed.- Returns:
- tracked
- Since:
- 1.21.3
-