use of net.minecraft.text.TranslatableText in project EnvironmentZ by Globox1997.
the class CommandInit method executeEnvCommand.
private static int executeEnvCommand(ServerCommandSource source, Collection<ServerPlayerEntity> targets, String environment, boolean affected) {
Iterator<ServerPlayerEntity> var3 = targets.iterator();
while (var3.hasNext()) {
ServerPlayerEntity serverPlayerEntity = (ServerPlayerEntity) var3.next();
if (environment.equals("hot"))
((PlayerEnvAccess) serverPlayerEntity).setHotEnvAffected(affected);
if (environment.equals("cold"))
((PlayerEnvAccess) serverPlayerEntity).setColdEnvAffected(affected);
EnvironmentServerPacket.writeS2CSyncEnvPacket(serverPlayerEntity, ((PlayerEnvAccess) serverPlayerEntity).isHotEnvAffected(), ((PlayerEnvAccess) serverPlayerEntity).isColdEnvAffected());
}
source.sendFeedback(new TranslatableText("commands.environment.changed"), true);
return targets.size();
}
use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.
the class Mullet3DoomArmor method appendTooltip.
@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
tooltip.add(new TranslatableText("doom.mulletarmor.text").formatted(Formatting.YELLOW).formatted(Formatting.ITALIC));
super.appendTooltip(stack, world, tooltip, context);
}
use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.
the class NightmareDoomArmor method appendTooltip.
@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
tooltip.add(new TranslatableText("doom.nightmarearmor.text").formatted(Formatting.YELLOW).formatted(Formatting.ITALIC));
super.appendTooltip(stack, world, tooltip, context);
}
use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.
the class PraetorDoomArmor method appendTooltip.
@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
tooltip.add(new TranslatableText("doom.praetorarmor.text").formatted(Formatting.YELLOW).formatted(Formatting.ITALIC));
super.appendTooltip(stack, world, tooltip, context);
}
use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.
the class PurplePonyDoomArmor method appendTooltip.
@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
tooltip.add(new TranslatableText("doom.purplearmor.text").formatted(Formatting.YELLOW).formatted(Formatting.ITALIC));
super.appendTooltip(stack, world, tooltip, context);
}
Aggregations