程序包 org.bukkit.util

接口 Consumer<T>

类型参数:
T - 输入参数类型

public interface Consumer<T>
表示接受一个输入参数且没有返回值的操作.

原文:Represents an operation that accepts a single input argument and returns no result.

  • 方法概要

    修饰符和类型
    方法
    说明
    void
    accept(T t)
    使用给定的参数执行操作.
  • 方法详细资料

    • accept

      void accept(T t)
      使用给定的参数执行操作.

      原文:Performs this operation on the given argument.

      参数:
      t - 输入参数