/** * Gets the current growth state of this nether wart * * @return NetherWartsState of this nether wart */ public NetherWartsState getState() { switch (getData()) { case 0: return NetherWartsState.SEEDED; case 1: return NetherWartsState.STAGE_ONE; case 2: return NetherWartsState.STAGE_TWO; default: return NetherWartsState.RIPE; } }
/** * Gets the current growth state of this nether wart * * @return NetherWartsState of this nether wart */ public NetherWartsState getState() { switch (getData()) { case 0: return NetherWartsState.SEEDED; case 1: return NetherWartsState.STAGE_ONE; case 2: return NetherWartsState.STAGE_TWO; default: return NetherWartsState.RIPE; } }