Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ITextComponent getDeathMessage(LivingEntity playerEntityIn) {
- PlayerEntity playerEntity = (PlayerEntity) playerEntityIn;
- String s = "death.attack." + this.damageType;
- String s1 = s + ".boundPlayer";
- playerEntityIn.getCapability(BindingCapabilities.LIFE_BOUND_CAPABILITY).ifPresent(cap -> {
- UUID uuid = cap.getUUID();
- PlayerEntity other = playerEntityIn.getServer().getPlayerList().getPlayerByUUID(cap.getUUID());
- });
- return playerEntity != null ? new TranslationTextComponent(s1, , playerEntity.getGameProfile()) : new TranslationTextComponent(s, playerEntityIn.getDisplayName());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement