Class RequirementHasItemInHand
java.lang.Object
com.kamikazejam.kamicommon.command.requirement.RequirementAbstract
com.kamikazejam.kamicommon.command.requirement.RequirementHasItemInHand
- All Implemented Interfaces:
Requirement,Predicate<CommandSender>,Serializable,Predicate<CommandSender>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(CommandSender sender, KamiCommand command) @NotNull VersionedComponentcreateErrorMessage(CommandSender sender, KamiCommand command) static RequirementHasItemInHandget()static @NotNull RequirementHasItemInHandMethods inherited from class com.kamikazejam.kamicommon.command.requirement.RequirementAbstract
apply, createErrorMessage, getDesc, getRequirementsError, isRequirementsMet
-
Constructor Details
-
RequirementHasItemInHand
-
-
Method Details
-
get
-
get
@Contract("_ -> new") @NotNull public static @NotNull RequirementHasItemInHand get(@NotNull @NotNull Material... materialWhitelist) -
apply
-
createErrorMessage
@NotNull public @NotNull VersionedComponent createErrorMessage(CommandSender sender, KamiCommand command)
-