Skip to content

Commit

Permalink
Merge pull request #98 from Alathra/whale-blubber
Browse files Browse the repository at this point in the history
Whale Blubber
  • Loading branch information
ShermansWorld authored Jun 8, 2024
2 parents 977a48f + 46aed1f commit b54e41f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 29 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

group = "me.ShermansWorld"

version = "1.25.1"
version = "1.26.0"
description = ""
val mainPackage = "${project.group}.${rootProject.name}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,63 +34,46 @@ public void cookedMeats(FurnaceSmeltEvent event) {

private ItemStack cookedCods(ItemStack cooking) {
String substituteName = null;
int substituteCustomModelData = 0;

if (cooking.getItemMeta().getCustomModelData() == 2800) {
substituteName = "Cooked Shark Meat";
substituteCustomModelData = 2800;
}
if (cooking.getItemMeta().getCustomModelData() == 2800) substituteName = "Cooked Shark Meat";

if (cooking.getItemMeta().getCustomModelData() == 2801) {
substituteName = "Cooked Calamari";
substituteCustomModelData = 2801;
}
if (cooking.getItemMeta().getCustomModelData() == 2801) substituteName = "Cooked Calamari";

if (cooking.getItemMeta().getCustomModelData() == 2802) substituteName = "Cooked Whale Blubber";

if (substituteName == null) return null;

return makeCooked(Material.COOKED_COD, substituteName, substituteCustomModelData);
return makeCooked(Material.COOKED_COD, substituteName, cooking.getItemMeta().getCustomModelData());
}

private ItemStack cookedMuttons(ItemStack cooking) {
String substituteName = null;
int substituteCustomModelData = 0;

if (cooking.getItemMeta().getCustomModelData() == 2800) {
substituteName = "Cooked Venison";
substituteCustomModelData = 2800;
}
if (cooking.getItemMeta().getCustomModelData() == 2800) substituteName = "Cooked Venison";

if (substituteName == null) return null;

return makeCooked(Material.COOKED_MUTTON, substituteName, substituteCustomModelData);
return makeCooked(Material.COOKED_MUTTON, substituteName, cooking.getItemMeta().getCustomModelData());
}

private ItemStack cookedBeefs(ItemStack cooking) {
String substituteName = null;
int substituteCustomModelData = 0;

if (cooking.getItemMeta().getCustomModelData() == 2800) {
substituteName = "Cooked Elephant Meat";
substituteCustomModelData = 2800;
}
if (cooking.getItemMeta().getCustomModelData() == 2800) substituteName = "Cooked Elephant Meat";

if (substituteName == null) return null;

return makeCooked(Material.COOKED_BEEF, substituteName, substituteCustomModelData);
return makeCooked(Material.COOKED_BEEF, substituteName, cooking.getItemMeta().getCustomModelData());
}

private ItemStack cookedPorks(ItemStack cooking) {
String substituteName = null;
int substituteCustomModelData = 0;

if (cooking.getItemMeta().getCustomModelData() == 2800) {
substituteName = "Cooked Boar Meat";
substituteCustomModelData = 2800;
}
if (cooking.getItemMeta().getCustomModelData() == 2800) substituteName = "Cooked Boar Meat";

if (substituteName == null) return null;

return makeCooked(Material.COOKED_PORKCHOP, substituteName, substituteCustomModelData);
return makeCooked(Material.COOKED_PORKCHOP, substituteName, cooking.getItemMeta().getCustomModelData());
}

private ItemStack makeCooked(Material material, String name, int customModelData) {
Expand Down

0 comments on commit b54e41f

Please sign in to comment.