Skip to content

Commit

Permalink
Make ProbeNote extend ProbeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Oct 15, 2024
1 parent 355c09f commit 6d0b81a
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/main/java/mcjty/theoneprobe/items/ProbeNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,24 @@

import mcjty.theoneprobe.TheOneProbe;
import mcjty.theoneprobe.config.ConfigSetup;
import mcjty.theoneprobe.probe.ProbeBase;
import mcjty.theoneprobe.setup.GuiProxy;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import javax.annotation.ParametersAreNonnullByDefault;

public class ProbeNote extends Item {
public class ProbeNote extends ProbeBase {

public ProbeNote() {
setUnlocalizedName(TheOneProbe.MODID + ".probenote");
setRegistryName("probenote");
setCreativeTab(TheOneProbe.tabProbe);
super("probenote", "probenote");
setMaxStackSize(ConfigSetup.probeNoteStackSize);
}

@SideOnly(Side.CLIENT)
public void initModel() {
ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation(getRegistryName(), "inventory"));
}

@Override
@ParametersAreNonnullByDefault
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
Expand Down

0 comments on commit 6d0b81a

Please sign in to comment.