mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 14:03:43 +01:00
move from item-based air source detection to tag-based
This commit is contained in:
parent
8b28c03699
commit
8df2575700
5 changed files with 12 additions and 2 deletions
|
@ -5649,6 +5649,7 @@ c98ffdc2780c2a7690c590f46f014aeee7b0b504 data/create/tags/items/create_ingots.js
|
||||||
4480f211f4a37bfee193eba945bc9f5a8d2c6e34 data/create/tags/items/crushed_ores.json
|
4480f211f4a37bfee193eba945bc9f5a8d2c6e34 data/create/tags/items/crushed_ores.json
|
||||||
67385d5198d0796ec8f0d2c6ae144c672f4317a1 data/create/tags/items/modded_stripped_logs.json
|
67385d5198d0796ec8f0d2c6ae144c672f4317a1 data/create/tags/items/modded_stripped_logs.json
|
||||||
27a1074a88a7b939c811341086afece325ed724c data/create/tags/items/modded_stripped_wood.json
|
27a1074a88a7b939c811341086afece325ed724c data/create/tags/items/modded_stripped_wood.json
|
||||||
|
7973972edb524683ef365bc103fcfcde0858a854 data/create/tags/items/pressurized_air_sources.json
|
||||||
bce28787b0271382842823d04a977912a88b01c2 data/create/tags/items/sandpaper.json
|
bce28787b0271382842823d04a977912a88b01c2 data/create/tags/items/sandpaper.json
|
||||||
6cdeeac1689f7b5bfd9bc40b462143d8eaf3ad0b data/create/tags/items/seats.json
|
6cdeeac1689f7b5bfd9bc40b462143d8eaf3ad0b data/create/tags/items/seats.json
|
||||||
0f4276a6b7da5f4dee8909802e6717a4c97f0555 data/create/tags/items/sleepers.json
|
0f4276a6b7da5f4dee8909802e6717a4c97f0555 data/create/tags/items/sleepers.json
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"create:copper_backtank"
|
||||||
|
]
|
||||||
|
}
|
|
@ -248,6 +248,7 @@ public class AllItems {
|
||||||
|
|
||||||
COPPER_BACKTANK = REGISTRATE.item("copper_backtank", p -> new CopperBacktankItem(p, COPPER_BACKTANK_PLACEABLE))
|
COPPER_BACKTANK = REGISTRATE.item("copper_backtank", p -> new CopperBacktankItem(p, COPPER_BACKTANK_PLACEABLE))
|
||||||
.model(AssetLookup.customGenericItemModel("_", "item"))
|
.model(AssetLookup.customGenericItemModel("_", "item"))
|
||||||
|
.tag(AllItemTags.PRESSURIZED_AIR_SOURCES.tag)
|
||||||
.register(),
|
.register(),
|
||||||
|
|
||||||
DIVING_HELMET = REGISTRATE.item("diving_helmet", DivingHelmetItem::new)
|
DIVING_HELMET = REGISTRATE.item("diving_helmet", DivingHelmetItem::new)
|
||||||
|
|
|
@ -221,6 +221,7 @@ public class AllTags {
|
||||||
MODDED_STRIPPED_WOOD,
|
MODDED_STRIPPED_WOOD,
|
||||||
CASING,
|
CASING,
|
||||||
SLEEPERS,
|
SLEEPERS,
|
||||||
|
PRESSURIZED_AIR_SOURCES,
|
||||||
|
|
||||||
STRIPPED_LOGS(FORGE),
|
STRIPPED_LOGS(FORGE),
|
||||||
STRIPPED_WOOD(FORGE),
|
STRIPPED_WOOD(FORGE),
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.simibubi.create.content.curiosities.armor;
|
||||||
import com.simibubi.create.AllEnchantments;
|
import com.simibubi.create.AllEnchantments;
|
||||||
import com.simibubi.create.AllItems;
|
import com.simibubi.create.AllItems;
|
||||||
import com.simibubi.create.AllSoundEvents;
|
import com.simibubi.create.AllSoundEvents;
|
||||||
|
import com.simibubi.create.AllTags;
|
||||||
import com.simibubi.create.foundation.config.AllConfigs;
|
import com.simibubi.create.foundation.config.AllConfigs;
|
||||||
import com.simibubi.create.foundation.utility.Lang;
|
import com.simibubi.create.foundation.utility.Lang;
|
||||||
|
|
||||||
|
@ -28,7 +29,7 @@ public class BackTankUtil {
|
||||||
|
|
||||||
public static ItemStack get(LivingEntity entity) {
|
public static ItemStack get(LivingEntity entity) {
|
||||||
for (ItemStack itemStack : entity.getArmorSlots())
|
for (ItemStack itemStack : entity.getArmorSlots())
|
||||||
if (AllItems.COPPER_BACKTANK.isIn(itemStack))
|
if (AllTags.AllItemTags.PRESSURIZED_AIR_SOURCES.matches(itemStack))
|
||||||
return itemStack;
|
return itemStack;
|
||||||
return ItemStack.EMPTY;
|
return ItemStack.EMPTY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue