@@ -5,32 +5,32 @@ namespace SteveSharp.Core
55{
66 public static class Entity
77 {
8- public static string Selected ( string match = "" ) { if ( match == "" ) return "@s" ; else return "@s [" + match + "]" ; }
9- public static string AllPlayers ( string match = "" ) { if ( match == "" ) return "@a" ; else return "@a [" + match + "]" ; }
10- public static string RandomPlayer ( string match = "" ) { if ( match == "" ) return "@r" ; else return "@r [" + match + "]" ; }
11- public static string NearestPlayer ( string match = "" ) { if ( match == "" ) return "@p" ; else return "@p [" + match + "]" ; }
12- public static string AllEntities ( string match = "" ) { if ( match == "" ) return "@e" ; else return "@e [" + match + "]" ; }
8+ public static string SelectedMatch ( string match ) => "@s [" + match + "]" ;
9+ public static string AllPlayersMatch ( string match ) => "@a [" + match + "]" ;
10+ public static string RandomPlayerMatch ( string match ) => "@r [" + match + "]" ;
11+ public static string NearestPlayerMatch ( string match ) => "@p [" + match + "]" ;
12+ public static string AllEntitiesMatch ( string match ) => "@e [" + match + "]" ;
1313 /// <summary>
1414 /// This method selects an entity with specific matches, recommended if you want to select an entity with specific matches.
1515 /// </summary>
1616 /// <returns></returns>
17- public static void Custom ( EntityTarget targets , int ? limit = null , string [ ] ? tags = null , string [ ] ? scores = null , string ? team = null , string ? type = null , string ? distance = null , string ? area = null , string ? level = null , string ? gamemode = null , string ? horizontalRotation = null , string ? verticalRotation = null , string ? sort = null )
17+ public static void Custom ( Targets targets , int ? limit = null , string [ ] ? tags = null , string [ ] ? scores = null , string ? team = null , string ? type = null , string ? distance = null , string ? area = null , string ? level = null , string ? gamemode = null , string ? horizontalRotation = null , string ? verticalRotation = null , string ? sort = null )
1818 => FunctionBuilder . Add ( Str . Entity . Custom ( targets , limit , tags , scores , team , type , distance , area , level , gamemode , horizontalRotation , verticalRotation , sort ) ) ;
1919 public static void Custom ( string targets , int ? limit = null , string [ ] ? tags = null , string [ ] ? scores = null , string ? team = null , string ? type = null , string ? distance = null , string ? area = null , string ? level = null , string ? gamemode = null , string ? horizontalRotation = null , string ? verticalRotation = null , string ? sort = null )
2020 => FunctionBuilder . Add ( Str . Entity . Custom ( targets , limit , tags , scores , team , type , distance , area , level , gamemode , horizontalRotation , verticalRotation , sort ) ) ;
21- public static void Teleport ( EntityTarget targets , string to ) => FunctionBuilder . Add ( Str . Entity . Teleport ( targets , to ) ) ;
21+ public static void Teleport ( Targets targets , string to ) => FunctionBuilder . Add ( Str . Entity . Teleport ( targets , to ) ) ;
2222 public static void Teleport ( string targets , string to ) => FunctionBuilder . Add ( Str . Entity . Teleport ( targets , to ) ) ;
2323 public static void Summon ( EntityEnum entity , ( int X , int Y , int Z ) pos , string nbt = "{}" ) => FunctionBuilder . Add ( Str . Entity . Summon ( entity , pos , nbt ) ) ;
2424 public static void Summon ( EntityEnum entity , ( string X , string Y , string Z ) rel , string nbt = "{}" ) => FunctionBuilder . Add ( Str . Entity . Summon ( entity , rel , nbt ) ) ;
2525 public static void Summon ( EntityEnum entity , string [ ] pos , string nbt = "{}" ) => FunctionBuilder . Add ( Str . Entity . Summon ( entity , pos , nbt ) ) ;
2626 public static void Summon ( string entity , ( int X , int Y , int Z ) pos , string nbt = "{}" ) => FunctionBuilder . Add ( Str . Entity . Summon ( entity , pos , nbt ) ) ;
2727 public static void Summon ( string entity , ( string X , string Y , string Z ) rel , string nbt = "{}" ) => FunctionBuilder . Add ( Str . Entity . Summon ( entity , rel , nbt ) ) ;
2828 public static void Summon ( string entity , string [ ] pos , string nbt = "{}" ) => FunctionBuilder . Add ( Str . Entity . Summon ( entity , pos , nbt ) ) ;
29- public static void AddTag ( EntityTarget targets , string tag ) => FunctionBuilder . Add ( Str . Entity . AddTag ( targets , tag ) ) ;
29+ public static void AddTag ( Targets targets , string tag ) => FunctionBuilder . Add ( Str . Entity . AddTag ( targets , tag ) ) ;
3030 public static void AddTag ( string targets , string tag ) => FunctionBuilder . Add ( Str . Entity . AddTag ( targets , tag ) ) ;
31- public static void RemoveTag ( EntityTarget targets , string tag ) => FunctionBuilder . Add ( Str . Entity . RemoveTag ( targets , tag ) ) ;
31+ public static void RemoveTag ( Targets targets , string tag ) => FunctionBuilder . Add ( Str . Entity . RemoveTag ( targets , tag ) ) ;
3232 public static void RemoveTag ( string targets , string tag ) => FunctionBuilder . Add ( Str . Entity . RemoveTag ( targets , tag ) ) ;
33- public static void Kill ( EntityTarget targets ) => FunctionBuilder . Add ( Str . Entity . Kill ( targets ) ) ;
33+ public static void Kill ( Targets targets ) => FunctionBuilder . Add ( Str . Entity . Kill ( targets ) ) ;
3434 public static void Kill ( string targets ) => FunctionBuilder . Add ( Str . Entity . Kill ( targets ) ) ;
3535 }
3636}
0 commit comments