generated from neoforged/MDK
-
Notifications
You must be signed in to change notification settings - Fork 5
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
c54f468
commit bf36c24
Showing
5 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/com/leclowndu93150/modular_angelring/common/InertiaModuleItem.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,22 @@ | ||
package com.leclowndu93150.modular_angelring.common; | ||
|
||
import net.minecraft.ChatFormatting; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.TooltipFlag; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class InertiaModuleItem extends Item { | ||
public InertiaModuleItem(Properties pProperties) { | ||
super(pProperties); | ||
} | ||
|
||
@Override | ||
public void appendHoverText(@NotNull ItemStack pStack, @NotNull TooltipContext pContext, List<Component> pTooltipComponents, @NotNull TooltipFlag pTooltipFlag) { | ||
pTooltipComponents.add(Component.literal("Allows you to cancel flying inertia when stopping").withStyle(ChatFormatting.GRAY)); | ||
super.appendHoverText(pStack, pContext, pTooltipComponents, pTooltipFlag); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/leclowndu93150/modular_angelring/common/MiningModuleItem.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,22 @@ | ||
package com.leclowndu93150.modular_angelring.common; | ||
|
||
import net.minecraft.ChatFormatting; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.TooltipFlag; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class MiningModuleItem extends Item { | ||
public MiningModuleItem(Properties pProperties) { | ||
super(pProperties); | ||
} | ||
|
||
@Override | ||
public void appendHoverText(@NotNull ItemStack pStack, @NotNull TooltipContext pContext, List<Component> pTooltipComponents, @NotNull TooltipFlag pTooltipFlag) { | ||
pTooltipComponents.add(Component.literal("Allows you to mine as fast as ground speed").withStyle(ChatFormatting.GRAY)); | ||
super.appendHoverText(pStack, pContext, pTooltipComponents, pTooltipFlag); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/leclowndu93150/modular_angelring/common/ToolTipItem.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,22 @@ | ||
package com.leclowndu93150.modular_angelring.common; | ||
|
||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.TooltipFlag; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class ToolTipItem extends Item { | ||
private final Component component; | ||
public ToolTipItem(Properties properties, Component component) { | ||
super(properties); | ||
this.component = component; | ||
} | ||
|
||
@Override | ||
public void appendHoverText(@NotNull ItemStack pStack, @NotNull TooltipContext pContext, List<Component> pTooltipComponents, @NotNull TooltipFlag pTooltipFlag) { | ||
pTooltipComponents.add(component); | ||
} | ||
} |
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