Package net.glowstone.entity
Class EntityNetworkUtil
java.lang.Object
net.glowstone.entity.EntityNetworkUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getMobId
(org.bukkit.entity.EntityType type) Gets the network ID of a mob entity.static int
getObjectId
(org.bukkit.entity.EntityType type) Gets the network ID of an object entity.
-
Constructor Details
-
EntityNetworkUtil
public EntityNetworkUtil()
-
-
Method Details
-
getMobId
public static int getMobId(org.bukkit.entity.EntityType type) Gets the network ID of a mob entity.- Parameters:
type
- the mob entity type- Returns:
- the network ID of the mob entity, or -1 if it is not a mob.
-
getObjectId
public static int getObjectId(org.bukkit.entity.EntityType type) Gets the network ID of an object entity.- Parameters:
type
- the object entity type- Returns:
- the network ID of the object entity, or -1 if it is not an object.
-