Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
WenXin20 committed Sep 3, 2024
1 parent 4d40689 commit 63b9e9f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.lwjgl.glfw.GLFW;

public class WarpPipeScreen extends AbstractContainerScreen<WarpPipeMenu> {
public static ResourceLocation WARP_PIPE_GUI = ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "textures/gui/warp_pipe.png");
public static ResourceLocation WARP_PIPE_GUI = ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "textures/gui/warp_pipe.png");
Button bubblesButton;
Button closeButton;
Button renameButton;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import net.neoforged.neoforge.client.gui.widget.ExtendedSlider;

public class TexturedSlider extends ExtendedSlider {
public static final ResourceLocation SLIDER_LOCATION = ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "textures/gui/slider.png");
public static final ResourceLocation SLIDER_LOCATION = ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "textures/gui/slider.png");

/**
* @param x x position of upper left corner
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/com/wenxin2/marioverse/init/SoundRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ public class SoundRegistry {

static {
PIPES_LINKED = Marioverse.SOUNDS.register("block.pipes_linked",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.pipes_linked")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.pipes_linked")));
PIPE_CLOSES = Marioverse.SOUNDS.register("block.pipe_closes",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.pipe_closes")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.pipe_closes")));
PIPE_OPENS = Marioverse.SOUNDS.register("block.pipe_opens",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.pipe_opens")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.pipe_opens")));
PIPE_WARPS = Marioverse.SOUNDS.register("block.pipe_warps",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.pipe_warps")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.pipe_warps")));
WATER_SPOUT_BREAK = Marioverse.SOUNDS.register("block.water_spout.break",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.water_spout.break")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.water_spout.break")));
WATER_SPOUT_FALL = Marioverse.SOUNDS.register("block.water_spout.fall",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.water_spout.fall")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.water_spout.fall")));
WATER_SPOUT_HIT = Marioverse.SOUNDS.register("block.water_spout.hit",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.water_spout.hit")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.water_spout.hit")));
WATER_SPOUT_PLACE = Marioverse.SOUNDS.register("block.water_spout.place",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.water_spout.place")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.water_spout.place")));
WATER_SPOUT_STEP = Marioverse.SOUNDS.register("block.water_spout.step",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "block.water_spout.step")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "block.water_spout.step")));
WRENCH_BOUND = Marioverse.SOUNDS.register("item.wrench_bound",
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "item.wrench_bound")));
() -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "item.wrench_bound")));
}

public static void init()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import net.minecraft.resources.ResourceLocation;

public record WaterSpoutSliderPayload(BlockPos pos, int waterSpoutHeight) implements CustomPacketPayload {
public static final Type<WaterSpoutSliderPayload> SPOUT_HEIGHT_PAYLOAD = new Type<>(ResourceLocation.fromNamespaceAndPath(Marioverse.MODID, "spout_height_payload"));
public static final Type<WaterSpoutSliderPayload> SPOUT_HEIGHT_PAYLOAD = new Type<>(ResourceLocation.fromNamespaceAndPath(Marioverse.MOD_ID, "spout_height_payload"));

@Override
public Type<WaterSpoutSliderPayload> type() {
Expand Down

0 comments on commit 63b9e9f

Please sign in to comment.