generated from jaredlll08/MultiLoader-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
e5bc8f6
commit 8051e00
Showing
25 changed files
with
305 additions
and
40 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
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,4 +1,5 @@ | ||
# 2.2.4 | ||
# 2.3.0 | ||
|
||
Fixed favorited locations not being saved | ||
Add config to disabled waystones & fwaystones compat | ||
Fixed issue with Timer mode on Tempad | ||
Added Curios support on Forge | ||
Added Trinket support on Fabric |
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
19 changes: 19 additions & 0 deletions
19
common/src/main/java/me/codexadrian/tempad/common/compat/botarium/TempadEnergyContainer.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package me.codexadrian.tempad.common.compat.botarium; | ||
|
||
import earth.terrarium.botarium.common.energy.impl.SimpleEnergyContainer; | ||
|
||
public class TempadEnergyContainer extends SimpleEnergyContainer { | ||
public TempadEnergyContainer(long maxCapacity) { | ||
super(maxCapacity); | ||
} | ||
|
||
@Override | ||
public long maxInsert() { | ||
return Integer.MAX_VALUE; | ||
} | ||
|
||
@Override | ||
public long maxExtract() { | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
common/src/main/java/me/codexadrian/tempad/common/compat/botarium/TempadFluidContainer.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package me.codexadrian.tempad.common.compat.botarium; | ||
|
||
import earth.terrarium.botarium.common.fluid.base.FluidHolder; | ||
import earth.terrarium.botarium.common.fluid.impl.SimpleFluidContainer; | ||
import me.codexadrian.tempad.common.Tempad; | ||
|
||
import java.util.function.BiPredicate; | ||
import java.util.function.IntToLongFunction; | ||
|
||
public class TempadFluidContainer extends SimpleFluidContainer { | ||
public TempadFluidContainer(long maxAmount) { | ||
super(integer -> maxAmount, 1, (integer, fluidHolder) -> fluidHolder.is(Tempad.TEMPAD_LIQUID_FUEL_TAG)); | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
common/src/main/resources/data/curios/tags/items/bracelet.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"tempad:tempad", | ||
"tempad:he_who_remains_tempad" | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
common/src/main/resources/data/tempad/curios/entities/tempad.json
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"entities": ["player"], | ||
"slots": ["bracelet"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"entities": [ | ||
"player" | ||
], | ||
"slots": [ | ||
"hand/glove", | ||
"offhand/glove" | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
common/src/main/resources/data/trinkets/tags/items/hand/glove.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"tempad:tempad", | ||
"tempad:he_who_remains_tempad" | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
common/src/main/resources/data/trinkets/tags/items/offhand/glove.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"tempad:tempad", | ||
"tempad:he_who_remains_tempad" | ||
] | ||
} |
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
16 changes: 16 additions & 0 deletions
16
fabric/src/main/java/me/codexadrian/tempad/common/compat/trinkets/TempadTrinket.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package me.codexadrian.tempad.common.compat.trinkets; | ||
|
||
import dev.emi.trinkets.api.SlotReference; | ||
import dev.emi.trinkets.api.Trinket; | ||
import me.codexadrian.tempad.common.items.TempadItem; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.item.ItemStack; | ||
|
||
public class TempadTrinket implements Trinket { | ||
@Override | ||
public void tick(ItemStack stack, SlotReference slot, LivingEntity entity) { | ||
if (stack.getItem() instanceof TempadItem tempadItem) { | ||
tempadItem.getOption().tick(stack, entity); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
fabric/src/main/java/me/codexadrian/tempad/common/compat/trinkets/TempadTrinketHandler.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package me.codexadrian.tempad.common.compat.trinkets; | ||
|
||
import dev.emi.trinkets.api.TrinketsApi; | ||
import me.codexadrian.tempad.common.registry.TempadRegistry; | ||
|
||
public class TempadTrinketHandler { | ||
public static void init() { | ||
TrinketsApi.registerTrinket(TempadRegistry.TEMPAD.get(), new TempadTrinket()); | ||
TrinketsApi.registerTrinket(TempadRegistry.CREATIVE_TEMPAD.get(), new TempadTrinket()); | ||
} | ||
} |
Oops, something went wrong.