Skip to content

Commit

Permalink
feat(command): remove damage source arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed May 12, 2022
1 parent b593069 commit 1ec873f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 159 deletions.
Expand Up @@ -3,9 +3,6 @@
import com.mojang.brigadier.arguments.ArgumentType;
import org.auioc.mcmod.arnicalib.ArnicaLib;
import org.auioc.mcmod.arnicalib.common.command.argument.CreativeModeTabArgument;
import org.auioc.mcmod.arnicalib.common.command.argument.DamageSourceArgument;
import org.auioc.mcmod.arnicalib.common.command.argument.EntityDamageSourceArgument;
import org.auioc.mcmod.arnicalib.common.command.argument.IndirectEntityDamageSourceArgument;
import net.minecraft.commands.synchronization.ArgumentSerializer;
import net.minecraft.commands.synchronization.ArgumentTypes;
import net.minecraft.commands.synchronization.EmptyArgumentSerializer;
Expand All @@ -17,9 +14,7 @@ private static <T extends ArgumentType<?>> void register(String id, Class<T> cla
}

public static void init() {
register("damage_source", DamageSourceArgument.class, new EmptyArgumentSerializer<>(DamageSourceArgument::damageSource));
register("entity_damage_source", EntityDamageSourceArgument.class, new EmptyArgumentSerializer<>(EntityDamageSourceArgument::damageSource));
register("indirect_entity_damage_source", IndirectEntityDamageSourceArgument.class, new EmptyArgumentSerializer<>(IndirectEntityDamageSourceArgument::damageSource));
register("creative_mode_tab", CreativeModeTabArgument.class, new EmptyArgumentSerializer<>(CreativeModeTabArgument::creativeModeTab));
}

}

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1ec873f

Please sign in to comment.