Skip to content

Commit

Permalink
Add more genericVision() factory methods for entity filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Oct 9, 2023
1 parent 204eec5 commit c89f5e3
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ public static FilterAllaysSetting genericCombat(boolean checked)
{
return new FilterAllaysSetting("Won't attack allays.", checked);
}

public static FilterAllaysSetting genericVision(boolean checked)
{
return new FilterAllaysSetting("Won't show allays.", checked);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ public static FilterArmorStandsSetting genericCombat(boolean checked)
return new FilterArmorStandsSetting("Won't attack armor stands.",
checked);
}

public static FilterArmorStandsSetting genericVision(boolean checked)
{
return new FilterArmorStandsSetting("Won't show armor stands.",
checked);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ public static FilterEndermenSetting genericCombat(boolean checked)
{
return new FilterEndermenSetting("Won't attack endermen.", checked);
}

public static FilterEndermenSetting genericVision(boolean checked)
{
return new FilterEndermenSetting("Won't show endermen.", checked);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ public static FilterGolemsSetting genericCombat(boolean checked)
return new FilterGolemsSetting(
"Won't attack iron golems, snow golems and shulkers.", checked);
}

public static FilterGolemsSetting genericVision(boolean checked)
{
return new FilterGolemsSetting(
"Won't show iron golems, snow golems and shulkers.", checked);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ public static FilterPetsSetting genericCombat(boolean checked)
return new FilterPetsSetting(
"Won't attack tamed wolves, tamed horses, etc.", checked);
}

public static FilterPetsSetting genericVision(boolean checked)
{
return new FilterPetsSetting(
"Won't show tamed wolves, tamed horses, etc.", checked);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ public static FilterPigmenSetting genericCombat(boolean checked)
{
return new FilterPigmenSetting("Won't attack zombie pigmen.", checked);
}

public static FilterPigmenSetting genericVision(boolean checked)
{
return new FilterPigmenSetting("Won't show zombie pigmen.", checked);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ public static FilterTradersSetting genericCombat(boolean checked)
return new FilterTradersSetting(
"Won't attack villagers, wandering traders, etc.", checked);
}

public static FilterTradersSetting genericVision(boolean checked)
{
return new FilterTradersSetting(
"Won't show villagers, wandering traders, etc.", checked);
}
}

0 comments on commit c89f5e3

Please sign in to comment.