コード例 #1
0
  @Override
  public void registerWoodenSigns(ArrayList<ItemStack> planks) throws IntegrationException {
    for (ItemStack stack : planks) {
      if (stack.getUnlocalizedName().equals("tile.spectrePlank") && item == null) {
        item = stack.getItem();
        break;
      }
    }

    SignRegistry.register(
        "spectre_sign",
        null,
        "spectre",
        "randomthings/",
        false,
        new ItemStack(item, 1, 0),
        Reference.MODID,
        RT_ID);
  }
コード例 #2
0
  @Override
  public void registerWoodenSigns(ArrayList<ItemStack> planks) throws IntegrationException {
    for (ItemStack plank : planks) {
      if (plank.getUnlocalizedName().equals("tile.plankWildwood") && item == null) {
        item = plank.getItem();
        break;
      }
    }

    SignRegistry.register(
        "wildwood_sign",
        null,
        "wildwood",
        "roots/",
        false,
        new ItemStack(item, 1, 0),
        Reference.MODID,
        ROOTS_TAG);
  }