public LootHandler() { for (String s : TABLES) { LootTableList.register(new ResourceLocation(LibMisc.MOD_ID, s)); } LootConditionManager.registerCondition(new TrueGuardianKiller.Serializer()); LootConditionManager.registerCondition(new EnableRelics.Serializer()); LootFunctionManager.registerFunction(new BindUuid.Serializer()); }
@Override protected List<String> getLines() { return LootTableList.getAll().stream().map(ResourceLocation::toString).collect(Collectors.toList()); }
public List<String> getLootTableNames() { return LootTableList.getAll().stream().map(ResourceLocation::toString).filter(rl -> !AWStructureStatics.lootTableExclusions.contains(rl)) .collect(Collectors.toList()); }
private static void registerDungeonLoot() { LootTableList.register(Constants.VILLAGE_NATURALIST_LOOT_KEY); }
public static void init(@Nonnull EnderIOLifecycleEvent.Init.Post event) { if (useTables) { for (ResourceLocation resourceLocation : MC_TABLES) { LootTableList.register(eio(resourceLocation)); } } }
public static void init() { for (String s : CHEST_TABLES) { LootTableList.register(new ResourceLocation(AncientWarfareCore.MOD_ID, "inject/chests/" + s)); } }
private static ResourceLocation register(String s) { ResourceLocation loc = new ResourceLocation(REFERENCE.MODID, s); LootTableList.register(loc); return loc; }
public static void init() { BUTTERFLY_LOOT = LootTableList.register(new ResourceLocation(FamiliarFauna.MOD_ID, "entities/butterfly")); DRAGONFLY_LOOT = LootTableList.register(new ResourceLocation(FamiliarFauna.MOD_ID, "entities/dragonfly")); DEER_LOOT = LootTableList.register(new ResourceLocation(FamiliarFauna.MOD_ID, "entities/deer")); PIXIE_LOOT = LootTableList.register(new ResourceLocation(FamiliarFauna.MOD_ID, "entities/pixie")); SNAIL_LOOT = LootTableList.register(new ResourceLocation(FamiliarFauna.MOD_ID, "entities/snail")); TURKEY_LOOT = LootTableList.register(new ResourceLocation(FamiliarFauna.MOD_ID, "entities/turkey")); } }
private static ResourceLocation register(String id) { return LootTableList.register(new ResourceLocation(HFModInfo.MODID, id)); } }
private static void registerLootTable(String id, WaterType type, Season season) { FishingHelper.FISHING_LOOT.put(Pair.of(season, type), LootTableList.register(new ResourceLocation(HFModInfo.MODID, "gameplay/fishing/" + id))); } }
private static ResourceLocation register(String id) { return LootTableList.register(new ResourceLocation(GaiaReference.MOD_ID, id)); } }
/** * Add a loot structure loot table to the list * * @param name */ public static ResourceLocation addStructureLootTable(String name) { String rs_id = "structure/" + name; STRUCTURE_TABLES.add(rs_id); ResourceLocation id = new ResourceLocation(rs_id); LootTableList.register(id); return id; } private int injected = 0;
@SubscribeEvent public static void onEntityRegister(@Nonnull Register<EntityEntry> event) { LootTableList.register(new ResourceLocation(EnderIOZoo.DOMAIN, NAME + "_1")); LootTableList.register(new ResourceLocation(EnderIOZoo.DOMAIN, NAME + "_2")); LootTableList.register(new ResourceLocation(EnderIOZoo.DOMAIN, NAME + "_4")); IEnderZooMob.register(event, NAME, EntityDireSlime.class, EGG_BG_COL, EGG_FG_COL, MobID.DLIME); }
/** * Registers a loot table with the loot table list. This needs to be called before a loot * table can be used. * * @param name The name of the loot table to use. * @return A ResourceLocation pointing to the table. */ public ResourceLocation registerLootTable (String name) { return LootTableList.register(new ResourceLocation(this.getModid(), name)); }
@SubscribeEvent public static void onEntityRegister(@Nonnull Register<EntityEntry> event) { LootTableList.register(new ResourceLocation(EnderIOZoo.DOMAIN, NAME)); IEnderZooMob.register(event, NAME, EntityEnderminy.class, EGG_BG_COL, EGG_FG_COL, MobID.EMINIY); }
@SubscribeEvent public static void onEntityRegister(@Nonnull Register<EntityEntry> event) { LootTableList.register(new ResourceLocation(EnderIOZoo.DOMAIN, NAME)); IEnderZooMob.register(event, NAME, EntityConcussionCreeper.class, EGG_BG_COL, EGG_FG_COL, MobID.CCREEPER); }
@SubscribeEvent public static void onEntityRegister(@Nonnull Register<EntityEntry> event) { LootTableList.register(new ResourceLocation(EnderIOZoo.DOMAIN, NAME)); IEnderZooMob.register(event, NAME, EntityLoveChild.class, EGG_BG_COL, EGG_FG_COL, MobID.LCHILD); }
@SubscribeEvent public static void onEntityRegister(@Nonnull Register<EntityEntry> event) { LootTableList.register(new ResourceLocation(EnderIOZoo.DOMAIN, NAME)); IEnderZooMob.register(event, NAME, EntityOwl.class, EGG_BG_COL, EGG_FG_COL, MobID.OWL); }