Commits
Parker Hawke authored and md_5 committed c68c1f1b351
327 327 | |
328 328 | public int getNoDamageTicks() { |
329 329 | return getHandle().invulnerableTime; |
330 330 | } |
331 331 | |
332 332 | |
333 333 | public void setNoDamageTicks(int ticks) { |
334 334 | getHandle().invulnerableTime = ticks; |
335 335 | } |
336 336 | |
337 + | |
338 + | public int getNoActionTicks() { |
339 + | return getHandle().getNoActionTime(); |
340 + | } |
341 + | |
342 + | |
343 + | public void setNoActionTicks(int ticks) { |
344 + | Preconditions.checkArgument(ticks >= 0, "ticks must be >= 0"); |
345 + | getHandle().setNoActionTime(ticks); |
346 + | } |
347 + | |
337 348 | |
338 349 | public EntityLiving getHandle() { |
339 350 | return (EntityLiving) entity; |
340 351 | } |
341 352 | |
342 353 | public void setHandle(final EntityLiving entity) { |
343 354 | super.setHandle(entity); |
344 355 | } |
345 356 | |
346 357 | |