Skip to content

Commit

Permalink
Add entity property handled lists (#1894)
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicScore authored and mcmonkey4eva committed Jan 22, 2019
1 parent de915f7 commit c4eb500
Show file tree
Hide file tree
Showing 48 changed files with 413 additions and 0 deletions.
Expand Up @@ -24,6 +24,14 @@ public static EntityAI getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"has_ai"
};

public static final String[] handledMechs = new String[] {
"has_ai", "toggle_ai"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -33,6 +33,14 @@ public static EntityAge getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"age", "is_age_locked", "is_baby"
};

public static final String[] handledMechs = new String[] {
"age_lock", "age"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -24,6 +24,15 @@ public static EntityAnger getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"anger"
};

public static final String[] handledMechs = new String[] {
"anger"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -26,6 +26,15 @@ public static EntityAngry getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"angry"
};

public static final String[] handledMechs = new String[] {
"angry"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -33,6 +33,17 @@ public static EntityAreaEffectCloud getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"base_potion", "particle", "duration", "radius", "reapplication_delay", "wait_time",
"has_custom_effect", "source", "custom_effects"
};

public static final String[] handledMechs = new String[] {
"clear_custom_effects", "remove_custom_effect", "custom_effects", "particle_color",
"base_potion", "duration", "duration_on_use", "particle", "radius", "radius_on_use",
"radius_per_tick", "reapplication_delay", "source", "wait_time"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -23,6 +23,14 @@ public static EntityArmorBonus getFrom(dObject entity) {
return new EntityArmorBonus((dEntity) entity);
}

public static final String[] handledTags = new String[]{
"armor_bonus"
};

public static final String[] handledMechs = new String[] {
"armor_bonus"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -31,6 +31,14 @@ public static EntityArmorPose getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"armor_pose_list", "armor_pose"
};

public static final String[] handledMechs = new String[] {
"armor_pose"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -24,6 +24,15 @@ public static EntityArms getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"arms"
};

public static final String[] handledMechs = new String[] {
"arms"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -24,6 +24,15 @@ public static EntityBasePlate getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"base_plate"
};

public static final String[] handledMechs = new String[] {
"base_plate"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -25,6 +25,15 @@ public static EntityBeamTarget getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"beam_target"
};

public static final String[] handledMechs = new String[] {
"beam_target"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -25,6 +25,15 @@ public static EntityBoatType getFrom(dObject object) {
}
}

public static final String[] handledTags = new String[]{
"boat_type"
};

public static final String[] handledMechs = new String[] {
"boat_type"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -22,6 +22,15 @@ public static EntityBodyArrows getFrom(dObject object) {
}
}

public static final String[] handledTags = new String[]{
"body_arrows"
};

public static final String[] handledMechs = new String[] {
"body_arrows", "clear_body_arrows"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -32,6 +32,15 @@ public static EntityBoundingBox getFrom(dObject object) {
}
}

public static final String[] handledTags = new String[]{
"bounding_box"
};

public static final String[] handledMechs = new String[] {
"bounding_box"
};


private static Set<UUID> modifiedBoxes = new HashSet<UUID>();

public static void remove(UUID uuid) {
Expand Down
Expand Up @@ -24,6 +24,15 @@ public static EntityChestCarrier getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"carries_chest"
};

public static final String[] handledMechs = new String[] {
"carries_chest"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -43,6 +43,14 @@ public static EntityColor getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"color"
};

public static final String[] handledMechs = new String[] {
"color"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -24,6 +24,15 @@ public static EntityCritical getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"critical"
};

public static final String[] handledMechs = new String[] {
"critical"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -20,6 +20,14 @@ public static EntityCustomName getFrom(dObject entity) {
return new EntityCustomName((dEntity) entity);
}

public static final String[] handledTags = new String[]{
"custom_name_visible", "custom_name"
};

public static final String[] handledMechs = new String[] {
"custom_name_visibility", "custom_name_visible", "custom_name"
};

private EntityCustomName(dEntity ent) {
entity = ent;
}
Expand Down
Expand Up @@ -30,6 +30,15 @@ public static EntityDisabledSlots getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"disabled_slots"
};

public static final String[] handledMechs = new String[] {
"disabled_slots_raw", "disabled_slots"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -24,6 +24,15 @@ public static EntityElder getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"elder"
};

public static final String[] handledMechs = new String[] {
"elder"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -27,6 +27,14 @@ public static EntityEquipment getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"equipment"
};

public static final String[] handledMechs = new String[] {
"equipment"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -28,6 +28,15 @@ public static EntityFirework getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"firework_item"
};

public static final String[] handledMechs = new String[] {
"firework_item", "detonate"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -31,6 +31,14 @@ public static EntityFramed getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"framed_item_rotation", "framed_item", "has_framed_item"
};

public static final String[] handledMechs = new String[] {
"framed"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -28,6 +28,15 @@ public static EntityGravity getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"gravity"
};

public static final String[] handledMechs = new String[] {
"gravity"
};


///////////////////
// Instance Fields and Methods
/////////////
Expand Down
Expand Up @@ -28,6 +28,14 @@ public static EntityHealth getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"health"
};

public static final String[] handledMechs = new String[] {
"max_health", "health_data", "health"
};


///////////////////
// Instance Fields and Methods
Expand Down
Expand Up @@ -35,6 +35,14 @@ public static EntityInfected getFrom(dObject entity) {
}
}

public static final String[] handledTags = new String[]{
"is_infected"
};

public static final String[] handledMechs = new String[] {
"is_infected"
};


///////////////////
// Instance Fields and Methods
Expand Down

0 comments on commit c4eb500

Please sign in to comment.