/*
 * This file is part of SpongeAPI, licensed under the MIT License (MIT).
 *
 * Copyright (c) SpongePowered <https://www.spongepowered.org>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.spongepowered.api.event.cause.entity.damage;

import org.spongepowered.api.entity.Entity;
import org.spongepowered.api.event.cause.entity.damage.source.DamageSource;
import org.spongepowered.api.registry.DefaultedRegistryValue;
import org.spongepowered.api.util.Nameable;
import org.spongepowered.api.util.annotation.CatalogedBy;

/**
 * A {@link DamageType} is a type of "grouping" for {@link DamageSource}s since
 * a {@link DamageSource} instance can be inherently different from another
 * {@link DamageSource} by virtue of the {@link Object} backing the source.
 * Furthermore, it is impossible to refer to {@link DamageSource}s statically
 * due to the nature of constructing them. It is possible however, that the
 * parent {@link Object} being referred to as the "damage source" can damage
 * an {@link Entity} with varying {@link DamageType}s depending on the
 * circumstances.
 */
@CatalogedBy(DamageTypes.class)
public interface DamageType extends DefaultedRegistryValue, Nameable {

}

@@ -1302,16 +1302,53 @@
 amage;%0A%0A
+import org.spongepowered.api.Sponge;%0A
 import o
@@ -2288,10 +2288,606 @@
 able %7B%0A%0A
+    /**%0A     * Creates a new %7B@link Builder builder%7D to build a %7B@link DamageType%7D.%0A     *%0A     * @return A new builder%0A     */%0A    static Builder builder() %7B%0A        return Sponge.game().builderProvider().provide(Builder.class);%0A    %7D%0A%0A    /**%0A     * A builder to create %7B@link DamageType%7Ds.%0A     */%0A    interface Builder extends org.spongepowered.api.util.Builder%3CDamageType, Builder%3E %7B%0A%0A        /**%0A         * Sets the name of the %7B@link DamageType%7D.%0A         *%0A         * @param name The name%0A         * @return This builder, for chaining%0A         */%0A        Builder name(String name);%0A    %7D%0A
 %7D%0A

add DamageType.Builder (#2271)