Package org.bukkit.block.data.type
Interface Cake
-
public interface Cake extends BlockData
'bites' represents the amount of bites which have been taken from this slice of cake.
A value of 0 indicates that the cake has not been eaten, whilst a value ofgetMaximumBites()
indicates that it is all gone :(
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBites()
Gets the value of the 'bites' property.int
getMaximumBites()
Gets the maximum allowed value of the 'bites' property.void
setBites(int bites)
Sets the value of the 'bites' property.-
Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getMaterial, matches, merge
-
-
-
-
Method Detail
-
getBites
int getBites()
Gets the value of the 'bites' property.- Returns:
- the 'bites' value
-
setBites
void setBites(int bites)
Sets the value of the 'bites' property.- Parameters:
bites
- the new 'bites' value
-
getMaximumBites
int getMaximumBites()
Gets the maximum allowed value of the 'bites' property.- Returns:
- the maximum 'bites' value
-
-