-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/1.19-deeper-down' into 1.19-deep…
…er-down
- Loading branch information
Showing
47 changed files
with
509 additions
and
169 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
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
21 changes: 21 additions & 0 deletions
21
src/main/java/de/dafuqs/spectrum/compat/patchouli/pages/PageMudConverting.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,21 @@ | ||
package de.dafuqs.spectrum.compat.patchouli.pages; | ||
|
||
import de.dafuqs.spectrum.*; | ||
import de.dafuqs.spectrum.recipe.*; | ||
import de.dafuqs.spectrum.recipe.fluid_converting.*; | ||
import net.minecraft.util.*; | ||
|
||
public class PageMudConverting extends PageFluidConverting<MudConvertingRecipe> { | ||
|
||
private static final Identifier BACKGROUND_TEXTURE = SpectrumCommon.locate("textures/gui/patchouli/mud.png"); | ||
|
||
public PageMudConverting() { | ||
super(SpectrumRecipeTypes.MUD_CONVERTING); | ||
} | ||
|
||
@Override | ||
public Identifier getBackgroundTexture() { | ||
return BACKGROUND_TEXTURE; | ||
} | ||
|
||
} |
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
31 changes: 31 additions & 0 deletions
31
src/main/java/de/dafuqs/spectrum/items/MysteriousCompassItem.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,31 @@ | ||
package de.dafuqs.spectrum.items; | ||
|
||
import de.dafuqs.revelationary.api.advancements.*; | ||
import de.dafuqs.spectrum.*; | ||
import de.dafuqs.spectrum.registries.*; | ||
import net.minecraft.entity.*; | ||
import net.minecraft.entity.player.*; | ||
import net.minecraft.item.*; | ||
import net.minecraft.util.*; | ||
import net.minecraft.world.*; | ||
import org.jetbrains.annotations.*; | ||
|
||
public class MysteriousCompassItem extends StructureCompassItem { | ||
|
||
private static final Identifier REQUIRED_ADVANCEMENT = SpectrumCommon.locate("unlocks/mysterious_locket_socketing"); | ||
|
||
public MysteriousCompassItem(Settings settings) { | ||
super(settings, SpectrumStructureTags.MYSTERIOUS_COMPASS_LOCATED); | ||
} | ||
|
||
@Override | ||
public void inventoryTick(@NotNull ItemStack stack, @NotNull World world, Entity entity, int slot, boolean selected) { | ||
if (!world.isClient && world.getTime() % 200 == 0 && entity instanceof PlayerEntity player) | ||
if(AdvancementHelper.hasAdvancement(player, REQUIRED_ADVANCEMENT)) { | ||
locateStructure(stack, world, entity); | ||
} else { | ||
removeStructurePos(stack); | ||
} | ||
} | ||
|
||
} |
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
Oops, something went wrong.