forked from SlimeKnights/TinkersConstruct
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
70 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
src/main/java/slimeknights/tconstruct/fluids/FluidEvents.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package slimeknights.tconstruct.fluids; | ||
|
||
import io.github.fabricators_of_create.porting_lib.fluids.FluidStack; | ||
import net.fabricmc.fabric.api.registry.FuelRegistry; | ||
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidConstants; | ||
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidStorage; | ||
import net.minecraft.world.item.Items; | ||
import slimeknights.tconstruct.fluids.util.ConstantFluidContainerWrapper; | ||
|
||
/** | ||
* Event subscriber for modifier events | ||
* Note the way the subscribers are set up, technically works on anything that has the tic_modifiers tag | ||
*/ | ||
@SuppressWarnings("unused") | ||
public class FluidEvents { | ||
public static void init() { | ||
onFurnaceFuel(); | ||
FluidStorage.ITEM.registerForItems((itemStack, context) -> new ConstantFluidContainerWrapper(new FluidStack(TinkerFluids.powderedSnow.get(), FluidConstants.BUCKET), Items.BUCKET.getDefaultInstance(), context), Items.POWDER_SNOW_BUCKET); | ||
} | ||
|
||
public static void onFurnaceFuel() { | ||
// if (event.getItemStack().getItem() == TinkerFluids.blazingBlood.asItem()) { | ||
// // 150% efficiency compared to lava bucket, compare to casting blaze rods, which cast into 120% | ||
// event.setBurnTime(30000); | ||
// } | ||
FuelRegistry.INSTANCE.add(TinkerFluids.blazingBlood.asItem(), 30000); | ||
} | ||
|
||
@SubscribeEvent | ||
static void attachCapabilities(AttachCapabilitiesEvent<ItemStack> event) { | ||
ItemStack stack = event.getObject(); | ||
if (event.getObject().is(Items.POWDER_SNOW_BUCKET)) { | ||
event.addCapability( | ||
TConstruct.getResource("powdered_snow"), | ||
new ConstantFluidContainerWrapper(new FluidStack(TinkerFluids.powderedSnow.get(), FluidAttributes.BUCKET_VOLUME), Items.BUCKET.getDefaultInstance())); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/java/slimeknights/tconstruct/library/json/variable/entity/AttributeEntityVariable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../java/slimeknights/tconstruct/library/json/variable/entity/EntityEffectLevelVariable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/slimeknights/tconstruct/shared/TinkerClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters