mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 18:59:49 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -8,7 +8,7 @@ import noppes.npcs.scripted.NpcAPI;
|
||||
import noppes.npcs.scripted.constants.EntityType;
|
||||
|
||||
public class ScriptEntityItem<T extends EntityItem> extends ScriptEntity<T> implements IEntityItem {
|
||||
private T entity;
|
||||
private final T entity;
|
||||
|
||||
public ScriptEntityItem(T entityItem) {
|
||||
super(entityItem);
|
||||
@@ -49,7 +49,7 @@ public class ScriptEntityItem<T extends EntityItem> extends ScriptEntity<T> impl
|
||||
|
||||
public void setAge(long age) {
|
||||
age = Math.max(Math.min(age, Integer.MAX_VALUE), Integer.MIN_VALUE);
|
||||
this.entity.age = (int)age;
|
||||
this.entity.age = (int) age;
|
||||
}
|
||||
|
||||
public int getLifeSpawn() {
|
||||
@@ -65,7 +65,7 @@ public class ScriptEntityItem<T extends EntityItem> extends ScriptEntity<T> impl
|
||||
}
|
||||
|
||||
public void setItem(IItemStack item) {
|
||||
ItemStack stack = item == null? null : item.getMCItemStack();
|
||||
ItemStack stack = item == null ? null : item.getMCItemStack();
|
||||
this.entity.setEntityItemStack(stack);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user