MCPlayerEntity
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Extending MCLivingEntity
MCPlayerEntity extends MCLivingEntity. That means all methods available in MCLivingEntity are also available in MCPlayerEntity
Methods
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter exhaustion | Type float | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter levels | Type int | Description No Description Provided |
Return Type: boolean
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter p_225609_1_ | Type boolean | Description No Description Provided |
Return Type: IItemStack
Return Type: float
Return Type: int
Return Type: int
Return Type: int
Return Type: IItemStack
Parameter | Type | Description |
---|---|---|
Parameter hand | Type MCHand | Description No Description Provided |
Return Type: PlayerInventory
Return Type: IItemStack
Parameter | Type | Description |
---|---|---|
Parameter slotIndex | Type int | Description No Description Provided |
Return Type: float
Return Type: int
Return Type: MCTextComponent
Gets the persisted NBT tag that is saved between deaths. Many mods use this to keep track of if they have given the player an item or not.
Return Type: MapData
Return Type: int
Return Type: float
Return Type: int
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter stack | Type IItemStack | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter experience | Type int | Description No Description Provided |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter text | Type MCTextComponent | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter text | Type MCTextComponent | Description No Description Provided |
Parameter actionBar | Type boolean | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter value | Type int | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter hand | Type MCHand | Description No Description Provided |
Parameter updateSelf | Type boolean | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter p_193102_1_ | Type MCResourceLocation[] | Description No Description Provided |
Updates the player’s persisted data that is saved between deaths.
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter data | Type MapData | Description No Description Provided |
Return Type: void
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name experience | Type float | Has Getter true | Has Setter false | Description No Description Provided |
Name experienceLevel | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Name experienceTotal | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Name fake | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name foodLevel | Type int | Has Getter true | Has Setter true | Description No Description Provided |
Name inventory | Type PlayerInventory | Has Getter true | Has Setter false | Description No Description Provided |
Name name | Type MCTextComponent | Has Getter true | Has Setter false | Description No Description Provided |
Name saturationLevel | Type float | Has Getter true | Has Setter false | Description No Description Provided |