mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Correct parameter names
This commit is contained in:
parent
349df38f07
commit
307e83770c
1 changed files with 4 additions and 4 deletions
|
@ -23,15 +23,15 @@ public class EntityType {
|
|||
return new Entry(cls, name);
|
||||
}
|
||||
|
||||
public EntityEntry projectile(Class<? extends Entity> cls, String name, int min, int max) {
|
||||
return projectile(cls, name, min, max, true);
|
||||
public EntityEntry projectile(Class<? extends Entity> cls, String name, int range, int frequency) {
|
||||
return projectile(cls, name, range, frequency, true);
|
||||
}
|
||||
|
||||
@FUF(reason = "...and it's much shorter than typing out this factory mess every time.")
|
||||
public EntityEntry projectile(Class<? extends Entity> cls, String name, int min, int max, boolean includeVelocity) {
|
||||
public EntityEntry projectile(Class<? extends Entity> cls, String name, int range, int frequency, boolean includeVelocity) {
|
||||
return EntityEntryBuilder.create().entity(cls)
|
||||
.name(name)
|
||||
.id(new ResourceLocation(modid, name), 0).tracker(min, max, includeVelocity)
|
||||
.id(new ResourceLocation(modid, name), 0).tracker(range, frequency, includeVelocity)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue