forked from CloudburstMC/Nukkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # src/main/java/cn/nukkit/Player.java # src/main/java/cn/nukkit/inventory/PlayerInventory.java # src/main/java/cn/nukkit/network/RakNetInterface.java
- Loading branch information
Showing
25 changed files
with
494 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package cn.nukkit.entity.mob; | ||
|
||
import cn.nukkit.level.format.FullChunk; | ||
import cn.nukkit.nbt.tag.CompoundTag; | ||
|
||
/** | ||
* @author Erik Miller | EinBexiii | ||
*/ | ||
public class EntityHoglin extends EntityMob { | ||
|
||
public final static int NETWORK_ID = 124; | ||
|
||
@Override | ||
public int getNetworkId() { | ||
return NETWORK_ID; | ||
} | ||
|
||
public EntityHoglin(FullChunk chunk, CompoundTag nbt) { | ||
super(chunk, nbt); | ||
} | ||
|
||
@Override | ||
protected void initEntity() { | ||
super.initEntity(); | ||
this.setMaxHealth(40); | ||
} | ||
|
||
@Override | ||
public float getWidth() { | ||
return 0.9f; | ||
} | ||
|
||
@Override | ||
public float getHeight() { | ||
return 0.9f; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Hoglin"; | ||
} | ||
} |
Oops, something went wrong.