|
1 |
| -package com.mrbysco.telepastries.compat.waila; |
2 |
| - |
3 |
| -import com.mrbysco.telepastries.Reference; |
4 |
| -import com.mrbysco.telepastries.blocks.cake.BlockCakeBase; |
5 |
| -import net.minecraft.ChatFormatting; |
6 |
| -import net.minecraft.network.chat.Component; |
7 |
| -import net.minecraft.resources.ResourceLocation; |
8 |
| -import snownee.jade.api.BlockAccessor; |
9 |
| -import snownee.jade.api.IBlockComponentProvider; |
10 |
| -import snownee.jade.api.ITooltip; |
11 |
| -import snownee.jade.api.IWailaClientRegistration; |
12 |
| -import snownee.jade.api.IWailaCommonRegistration; |
13 |
| -import snownee.jade.api.IWailaPlugin; |
14 |
| -import snownee.jade.api.WailaPlugin; |
15 |
| -import snownee.jade.api.config.IPluginConfig; |
16 |
| - |
17 |
| -@WailaPlugin |
18 |
| -public class TeleWailaCompat implements IWailaPlugin { |
19 |
| - |
20 |
| - @Override |
21 |
| - public void register(IWailaCommonRegistration registration) { |
22 |
| - } |
23 |
| - |
24 |
| - @Override |
25 |
| - public void registerClient(IWailaClientRegistration registration) { |
26 |
| - registration.registerBlockComponent(PastryBodyHandler.INSTANCE, BlockCakeBase.class); |
27 |
| - } |
28 |
| - |
29 |
| - public static class PastryBodyHandler implements IBlockComponentProvider { |
30 |
| - private static final ResourceLocation BITES = new ResourceLocation(Reference.MOD_ID, "bites"); |
31 |
| - |
32 |
| - public static final PastryBodyHandler INSTANCE = new PastryBodyHandler(); |
33 |
| - |
34 |
| - @Override |
35 |
| - public void appendTooltip(ITooltip iTooltip, BlockAccessor blockAccessor, IPluginConfig iPluginConfig) { |
36 |
| - iTooltip.add(Component.literal("Bites: " + (6 - blockAccessor.getBlockState().getValue(BlockCakeBase.BITES)) + " / 6").withStyle(ChatFormatting.GRAY)); |
37 |
| - } |
38 |
| - |
39 |
| - @Override |
40 |
| - public ResourceLocation getUid() { |
41 |
| - return BITES; |
42 |
| - } |
43 |
| - } |
44 |
| -} |
| 1 | +//package com.mrbysco.telepastries.compat.waila; |
| 2 | +// |
| 3 | +//import com.mrbysco.telepastries.Reference; |
| 4 | +//import com.mrbysco.telepastries.blocks.cake.BlockCakeBase; |
| 5 | +//import net.minecraft.ChatFormatting; |
| 6 | +//import net.minecraft.network.chat.Component; |
| 7 | +//import net.minecraft.resources.ResourceLocation; |
| 8 | +//import snownee.jade.api.BlockAccessor; |
| 9 | +//import snownee.jade.api.IBlockComponentProvider; |
| 10 | +//import snownee.jade.api.ITooltip; |
| 11 | +//import snownee.jade.api.IWailaClientRegistration; |
| 12 | +//import snownee.jade.api.IWailaCommonRegistration; |
| 13 | +//import snownee.jade.api.IWailaPlugin; |
| 14 | +//import snownee.jade.api.WailaPlugin; |
| 15 | +//import snownee.jade.api.config.IPluginConfig; |
| 16 | +// |
| 17 | +//@WailaPlugin |
| 18 | +//public class TeleWailaCompat implements IWailaPlugin { |
| 19 | +// |
| 20 | +// @Override |
| 21 | +// public void register(IWailaCommonRegistration registration) { |
| 22 | +// } |
| 23 | +// |
| 24 | +// @Override |
| 25 | +// public void registerClient(IWailaClientRegistration registration) { |
| 26 | +// registration.registerBlockComponent(PastryBodyHandler.INSTANCE, BlockCakeBase.class); |
| 27 | +// } |
| 28 | +// |
| 29 | +// public static class PastryBodyHandler implements IBlockComponentProvider { |
| 30 | +// private static final ResourceLocation BITES = new ResourceLocation(Reference.MOD_ID, "bites"); |
| 31 | +// |
| 32 | +// public static final PastryBodyHandler INSTANCE = new PastryBodyHandler(); |
| 33 | +// |
| 34 | +// @Override |
| 35 | +// public void appendTooltip(ITooltip iTooltip, BlockAccessor blockAccessor, IPluginConfig iPluginConfig) { |
| 36 | +// iTooltip.add(Component.literal("Bites: " + (6 - blockAccessor.getBlockState().getValue(BlockCakeBase.BITES)) + " / 6").withStyle(ChatFormatting.GRAY)); |
| 37 | +// } |
| 38 | +// |
| 39 | +// @Override |
| 40 | +// public ResourceLocation getUid() { |
| 41 | +// return BITES; |
| 42 | +// } |
| 43 | +// } |
| 44 | +//} |
0 commit comments