package org.bukkit.util; /** * Represents an operation that accepts a single input argument and returns no * result. * * @param the type of the input to the operation * @deprecated Use {@link java.util.function.Consumer} instead */ // Bukkit developer note (NOT plugin developers): // NEVER use this consumer in the API. // API methods which use this consumer will be remapped to Java's consumer at runtime, resulting in an error. @Deprecated(since = "1.20.2") public interface Consumer extends java.util.function.Consumer { /** * Performs this operation on the given argument. * * @param t the input argument */ @Override void accept(T t); }