aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/handler
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler')
-rw-r--r--src/Java/gtPlusPlus/core/handler/events/GeneralTooltipEventHandler.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/GeneralTooltipEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/GeneralTooltipEventHandler.java
index 6d09f65f3f..3acc3b6bcf 100644
--- a/src/Java/gtPlusPlus/core/handler/events/GeneralTooltipEventHandler.java
+++ b/src/Java/gtPlusPlus/core/handler/events/GeneralTooltipEventHandler.java
@@ -3,12 +3,14 @@ package gtPlusPlus.core.handler.events;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.block.Block;
+import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import gregtech.api.enums.ItemList;
import gtPlusPlus.GTplusplus;
import gtPlusPlus.GTplusplus.INIT_PHASE;
+import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.handler.events.BlockEventHandler;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.minecraft.ItemUtils;
@@ -28,6 +30,9 @@ public class GeneralTooltipEventHandler {
if (GTplusplus.CURRENT_LOAD_PHASE != INIT_PHASE.STARTED) {
return;
}
+ if (event.itemStack == null) {
+ return;
+ }
if (CORE.ConfigSwitches.chanceToDropFluoriteOre > 0) {
if (BlockEventHandler.blockLimestone != null && !BlockEventHandler.blockLimestone.isEmpty()) {
@@ -50,6 +55,24 @@ public class GeneralTooltipEventHandler {
}
}
+ //Material Collector Tooltips
+ if (event.itemStack.getItem() == Item.getItemFromBlock(ModBlocks.blockPooCollector)) {
+ //Normal
+ if (event.itemStack.getItemDamage() == 0) {
+ event.toolTip.add("Used to collect animal waste");
+ event.toolTip.add("Collects in a 5x4x5 area starting at Y+1");
+ event.toolTip.add("Use Hoppers/Pipes to empty");
+ }
+ //Advanced
+ else {
+ event.toolTip.add("Used to collect waste (Works on more than animals)");
+ event.toolTip.add("Significantly faster than the simple version");
+ event.toolTip.add("Collects in a 5x4x5 area starting at Y+1");
+ event.toolTip.add("Use Hoppers/Pipes to empty");
+ }
+ }
+
+
if (CORE.ConfigSwitches.enableAnimatedTurbines) {
boolean shift = false;