Skip to content

Commit

Permalink
use new 'register' method
Browse files Browse the repository at this point in the history
exclude AreaContainment and Biome to avoid conflict with the open PR on those classes
  • Loading branch information
mcmonkey4eva committed Nov 18, 2022
1 parent eaa2290 commit ffab6ab
Show file tree
Hide file tree
Showing 112 changed files with 112 additions and 112 deletions.
Expand Up @@ -283,7 +283,7 @@ public String getReasonNotFlaggable() {
return "is the chunk loaded?";
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

Expand Down
Expand Up @@ -266,7 +266,7 @@ public boolean equals(Object other) {
return red == otherColor.red && blue == otherColor.blue && green == otherColor.green && alpha == otherColor.alpha;
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <ColorTag.hex>
Expand Down
Expand Up @@ -714,7 +714,7 @@ public CuboidTag withWorld(WorldTag world) {
return newCuboid;
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
AreaContainmentObject.registerTags(CuboidTag.class, tagProcessor);
Expand Down
Expand Up @@ -411,7 +411,7 @@ public EllipsoidTag withWorld(WorldTag world) {
return new EllipsoidTag(loc, size.clone());
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
AreaContainmentObject.registerTags(EllipsoidTag.class, tagProcessor);
Expand Down
Expand Up @@ -156,7 +156,7 @@ public void reapplyTracker(AbstractFlagTracker tracker) {
// Nothing to do.
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

Expand Down
Expand Up @@ -1238,7 +1238,7 @@ public LocationTag doLocationTag(Attribute attribute) {
return new LocationTag(getBukkitEntity().getLocation());
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
PropertyParser.registerPropertyTagHandlers(EntityTag.class, tagProcessor);
Expand Down
Expand Up @@ -1174,7 +1174,7 @@ public Object getJavaObject() {
return inventory;
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
PropertyParser.registerPropertyTagHandlers(InventoryTag.class, tagProcessor);
Expand Down
Expand Up @@ -494,7 +494,7 @@ public boolean isTruthy() {
return !getBukkitMaterial().isAir();
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
PropertyParser.registerPropertyTagHandlers(ItemTag.class, tagProcessor);
Expand Down
Expand Up @@ -927,7 +927,7 @@ public Object getJavaObject() {
return clone();
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

Expand Down
Expand Up @@ -255,7 +255,7 @@ public void reapplyTracker(AbstractFlagTracker tracker) {
// Nothing to do.
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
PropertyParser.registerPropertyTagHandlers(MaterialTag.class, tagProcessor);
Expand Down
Expand Up @@ -423,7 +423,7 @@ public int hashCode() {
return getId();
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

Expand Down
Expand Up @@ -660,7 +660,7 @@ public boolean equals(Object other) {
return getUUID().equals(((PlayerTag) other).getUUID());
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

Expand Down
Expand Up @@ -163,7 +163,7 @@ public void reapplyTracker(AbstractFlagTracker tracker) {
// Nothing to do.
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

Expand Down
Expand Up @@ -611,7 +611,7 @@ public PolygonTag withWorld(WorldTag world) {
return toReturn;
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
AreaContainmentObject.registerTags(PolygonTag.class, tagProcessor);
Expand Down
Expand Up @@ -147,7 +147,7 @@ public Object getJavaObject() {
return recipe;
}

public static void registerTags() {
public static void register() {
PropertyParser.registerPropertyTagHandlers(TradeTag.class, tagProcessor);
}

Expand Down
Expand Up @@ -259,7 +259,7 @@ public ObjectTag setPrefix(String prefix) {
return this;
}

public static void registerTags() {
public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

Expand Down
Expand Up @@ -43,7 +43,7 @@ public String getPropertyId() {
return "has_ai";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.has_ai>
Expand Down
Expand Up @@ -79,7 +79,7 @@ public String getPropertyId() {
return "age";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.age>
Expand Down
Expand Up @@ -40,7 +40,7 @@ public EntityAggressive(EntityTag entity) {
this.entity = entity;
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.aggressive>
Expand Down
Expand Up @@ -71,7 +71,7 @@ public Bee getBee() {
return (Bee) entity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.anger>
Expand Down
Expand Up @@ -63,7 +63,7 @@ public String getPropertyId() {
return "angry";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.angry>
Expand Down
Expand Up @@ -50,7 +50,7 @@ public AttributeInstance getAttribute() {
return entity.getLivingEntity().getAttribute(Attribute.GENERIC_ARMOR);
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.armor_bonus>
Expand Down
Expand Up @@ -72,7 +72,7 @@ public MapTag getPoseMap() {
return map;
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.armor_pose_map>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public ArmorStand getStand() {
return (ArmorStand) dentity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.arms>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public Arrow getArrow() {
return (Arrow) dentity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.damage>
Expand Down
Expand Up @@ -67,7 +67,7 @@ public String getPropertyId() {
return "attribute_base_values";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.has_attribute[<attribute>]>
Expand Down
Expand Up @@ -214,7 +214,7 @@ public String getPropertyId() {
//
// -->

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.attribute_modifiers>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public Mob getMob() {
return (Mob) entity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.is_aware>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public String getPropertyId() {
return "base_plate";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.base_plate>
Expand Down
Expand Up @@ -50,7 +50,7 @@ public EnderCrystal getCrystal() {
return (EnderCrystal) dentity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.beam_target>
Expand Down
Expand Up @@ -49,7 +49,7 @@ public Boat getBoat() {
return (Boat) entity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.boat_type>
Expand Down
Expand Up @@ -52,7 +52,7 @@ public String getPropertyId() {
return "body_arrows";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.body_arrows>
Expand Down
Expand Up @@ -70,7 +70,7 @@ public String getPropertyId() {
return "bounding_box";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.bounding_box>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public Raider getRaider() {
return (Raider) entity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.can_join_raid>
Expand Down
Expand Up @@ -46,7 +46,7 @@ public String getPropertyId() {
return "charged";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.charged>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public ChestedHorse getChestedHorse() {
return (ChestedHorse) entity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.carries_chest>
Expand Down
Expand Up @@ -219,7 +219,7 @@ public String getPropertyId() {
// BLACK, BLUE, BROWN, CYAN, GRAY, GREEN, LIGHT_BLUE, LIGHT_GRAY, LIME, MAGENTA, ORANGE, PINK, PURPLE, RED, WHITE, or YELLOW.
// -->

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.allowed_colors>
Expand Down
Expand Up @@ -53,7 +53,7 @@ public String getPropertyId() {
return "conversion_player";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.conversion_player>
Expand Down
Expand Up @@ -52,7 +52,7 @@ public String getPropertyId() {
return "conversion_duration";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.conversion_duration>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public AbstractArrow getAbstractArrow() {
return (AbstractArrow) critical.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.critical>
Expand Down
Expand Up @@ -44,7 +44,7 @@ public String getPropertyId() {
return "custom_name";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.custom_name>
Expand Down
Expand Up @@ -42,7 +42,7 @@ public String getPropertyId() {
return "custom_name_visible";
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.custom_name_visible>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public GlowSquid getGlowSquid() {
return (GlowSquid) entity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.dark_duration>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public Fireball getFireball() {
return (Fireball) entity.getBukkitEntity();
}

public static void registerTags() {
public static void register() {

// <--[tag]
// @attribute <EntityTag.direction>
Expand Down

0 comments on commit ffab6ab

Please sign in to comment.