public interface BlockTool extends Tool
Modifier and Type | Method and Description |
---|---|
default boolean |
actPrimary(Platform server,
LocalConfiguration config,
Player player,
LocalSession session,
Location clicked)
Deprecated.
New subclasses should override
actPrimary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction)
instead |
default boolean |
actPrimary(Platform server,
LocalConfiguration config,
Player player,
LocalSession session,
Location clicked,
Direction face)
Perform the primary action of this tool.
|
@Deprecated default boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked)
actPrimary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction)
instead@NonAbstractForCompatibility(delegateName="actPrimary", delegateParams={Platform.class,LocalConfiguration.class,Player.class,LocalSession.class,Location.class}) default boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face)
server
- The platformconfig
- The config instanceplayer
- The playersession
- The local sessionclicked
- The location that was clickedface
- The face that was clickedNonAbstractForCompatibility
for details