Commits
coll1234567 authored and md_5 committed c8feb062965
759 759 | return entity; |
760 760 | } |
761 761 | |
762 762 | |
763 763 | public final EntityType getType() { |
764 764 | return entityType; |
765 765 | } |
766 766 | |
767 767 | |
768 768 | public void playEffect(EntityEffect type) { |
769 - | Preconditions.checkArgument(type != null, "type"); |
769 + | Preconditions.checkArgument(type != null, "Type cannot be null"); |
770 770 | Preconditions.checkState(!entity.generation, "Cannot play effect during world generation"); |
771 771 | |
772 772 | if (type.getApplicable().isInstance(this)) { |
773 773 | this.getHandle().level().broadcastEntityEvent(getHandle(), type.getData()); |
774 774 | } |
775 775 | } |
776 776 | |
777 777 | |
778 778 | public Sound getSwimSound() { |
779 779 | return CraftSound.minecraftToBukkit(getHandle().getSwimSound0()); |