/** * Construct an attribute modifier wrapper around a given NMS instance. * @param handle - the NMS instance. * @return The created attribute modifier. * @throws IllegalArgumentException If the handle is not an AttributeModifier. */ public static WrappedAttributeModifier fromHandle(@Nonnull Object handle) { return new WrappedAttributeModifier(handle); }
return new WrappedAttributeModifier( ATTRIBUTE_MODIFIER_CONSTRUCTOR.newInstance( uuid, name, amount, operation.getId()),