Skip to content

Commit

Permalink
Remove (un)boxing
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Jun 27, 2024
1 parent f45c0bc commit dbfe3cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ public HSEntityEctoglobin(World world)

public int getSkin()
{
return this.dataManager.get(SKIN_TYPE).intValue();
return this.dataManager.get(SKIN_TYPE);
}

public void setSkin(int skinType)
{
this.dataManager.set(SKIN_TYPE, Integer.valueOf(skinType));
this.dataManager.set(SKIN_TYPE, skinType);
}

@Override
protected void entityInit()
{
super.entityInit();
this.getDataManager().register(SKIN_TYPE, Integer.valueOf(this.rand.nextInt(3)));
this.getDataManager().register(SKIN_TYPE, this.rand.nextInt(3));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ public HSEntityHemoglobin(World world)

public int getSkin()
{
return this.dataManager.get(SKIN_TYPE).intValue();
return this.dataManager.get(SKIN_TYPE);
}

public void setSkin(int skinType)
{
this.dataManager.set(SKIN_TYPE, Integer.valueOf(skinType));
this.dataManager.set(SKIN_TYPE, skinType);
}

@Override
protected void entityInit()
{
super.entityInit();
this.getDataManager().register(SKIN_TYPE, Integer.valueOf(this.rand.nextInt(3)));
this.getDataManager().register(SKIN_TYPE, this.rand.nextInt(3));
}

@Override
Expand Down

0 comments on commit dbfe3cc

Please sign in to comment.