Java Code Examples for net.minecraft.entity.player.EntityPlayer#getExtendedProperties()

The following examples show how to use net.minecraft.entity.player.EntityPlayer#getExtendedProperties() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArsMagicaApi.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 4 votes vote down vote up
/**
 * Returns the skill data instance (known shapes/modifiers/components/talents)
 */
public final ISkillData getSkillData(EntityPlayer entity){
	return (ISkillData) entity.getExtendedProperties(skillDataIdentifier);
}
 
Example 2
Source File: ArsMagicaApi.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 4 votes vote down vote up
/**
 * Returns the rift storage for the passed in player.
 */
public final IInventory getRiftStorage(EntityPlayer entity){
	return (IInventory) entity.getExtendedProperties(riftStorageIdentifier);
}