mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-02 05:02:10 -07:00
#940: Create registry for banner pattern and cat type
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
@@ -12,8 +12,10 @@ import java.util.stream.StreamSupport;
|
||||
import org.bukkit.advancement.Advancement;
|
||||
import org.bukkit.attribute.Attribute;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.block.banner.PatternType;
|
||||
import org.bukkit.boss.KeyedBossBar;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Cat;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Frog;
|
||||
import org.bukkit.entity.Villager;
|
||||
@@ -75,6 +77,12 @@ public interface Registry<T extends Keyed> extends Iterable<T> {
|
||||
* @see Attribute
|
||||
*/
|
||||
Registry<Attribute> ATTRIBUTE = new SimpleRegistry<>(Attribute.class);
|
||||
/**
|
||||
* Server banner patterns.
|
||||
*
|
||||
* @see PatternType
|
||||
*/
|
||||
Registry<PatternType> BANNER_PATTERN = new SimpleRegistry<>(PatternType.class);
|
||||
/**
|
||||
* Server biomes.
|
||||
*
|
||||
@@ -107,6 +115,12 @@ public interface Registry<T extends Keyed> extends Iterable<T> {
|
||||
return Bukkit.getBossBars();
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Server cat types.
|
||||
*
|
||||
* @see Cat.Type
|
||||
*/
|
||||
Registry<Cat.Type> CAT_VARIANT = new SimpleRegistry<>(Cat.Type.class);
|
||||
/**
|
||||
* Server enchantments.
|
||||
*
|
||||
|
Reference in New Issue
Block a user