net.minecraft.server.command

public class EffectCommand

net.minecraft.server.commands.EffectCommands
net.minecraft.server.commands.EffectCommands
net.minecraft.class_3043
net.minecraft.server.command.EffectCommand

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_GIVE_FAILED
ERROR_GIVE_FAILED
field_13607
GIVE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_CLEAR_EVERYTHING_FAILED
ERROR_CLEAR_EVERYTHING_FAILED
field_13609
CLEAR_EVERYTHING_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_CLEAR_SPECIFIC_FAILED
ERROR_CLEAR_SPECIFIC_FAILED
field_13608
CLEAR_SPECIFIC_FAILED_EXCEPTION
private static final ElementAggregator$Reporter2<LivingEntity, StatusEffect, Integer>
RESPONSE_GIVE
RESPONSE_GIVE
field_1_7422
GIVE_REPORTER
private static final ElementAggregator$Reporter<Entity>
RESPONSE_CLEAR_ALL
RESPONSE_CLEAR_ALL
field_1_7420
CLEAR_EVERYTHING_REPORTER
private static final ElementAggregator$Reporter1<Entity, StatusEffect>
RESPONSE_CLEAR_SINGLE
RESPONSE_CLEAR_SINGLE
field_1_7421
CLEAR_SPECIFIC_REPORTER

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_13229(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
private static int
giveEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder, Integer seconds, int amplifier, boolean particles)
giveEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder, Integer seconds, int amplifier, boolean particles)
method_13227(class_2168 arg0, Collection<? extends class_1297> arg1, class_6880<class_1291> arg2, Integer arg3, int arg4, boolean arg5)
executeGive(ServerCommandSource source, Collection<? extends Entity> targets, RegistryEntry<StatusEffect> statusEffect, Integer durationInput, int amplifier, boolean showParticles)
private static int
computeDurationInTicks(Integer seconds, MobEffect effect)
computeDurationInTicks(Integer seconds, MobEffect effect)
method_1_6646(Integer arg0, class_1291 arg1)
getEffectTicks(Integer durationInput, StatusEffect effect)
private static int
clearEffects(CommandSourceStack source, Collection<? extends Entity> entities)
clearEffects(CommandSourceStack source, Collection<? extends Entity> entities)
method_13230(class_2168 arg0, Collection<? extends class_1297> arg1)
executeClear(ServerCommandSource source, Collection<? extends Entity> targets)
private static int
clearEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder)
clearEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder)
method_13231(class_2168 arg0, Collection<? extends class_1297> arg1, class_6880<class_1291> arg2)
executeClear(ServerCommandSource source, Collection<? extends Entity> targets, RegistryEntry<StatusEffect> statusEffect)