仅剩GuiExPatternTerminalMixin
This commit is contained in:
parent
f490917206
commit
0a8d1be673
|
|
@ -8,7 +8,7 @@ import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.item.component.CustomData;
|
import net.minecraft.world.item.component.CustomData;
|
||||||
import net.minecraft.world.item.TooltipFlag;
|
import net.minecraft.world.item.TooltipFlag;
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.item.Item;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
|
@ -20,7 +20,7 @@ import java.util.List;
|
||||||
public class EncodedPatternItemMixin {
|
public class EncodedPatternItemMixin {
|
||||||
// 客户端:在 HoverText 显示样板的编码玩家
|
// 客户端:在 HoverText 显示样板的编码玩家
|
||||||
@Inject(method = "appendHoverText", at = @At("TAIL"))
|
@Inject(method = "appendHoverText", at = @At("TAIL"))
|
||||||
public void epp$appendHoverText(ItemStack stack, Level level, List<Component> lines, TooltipFlag advancedTooltips, CallbackInfo ci){
|
public void epp$appendHoverText(ItemStack stack, Item.TooltipContext context, List<Component> lines, TooltipFlag advancedTooltips, CallbackInfo ci){
|
||||||
if (ModConfigs.SHOW_ENCOD_PATTERN_PLAYER.get()) {
|
if (ModConfigs.SHOW_ENCOD_PATTERN_PLAYER.get()) {
|
||||||
var customData = stack.getOrDefault(DataComponents.CUSTOM_DATA, CustomData.EMPTY);
|
var customData = stack.getOrDefault(DataComponents.CUSTOM_DATA, CustomData.EMPTY);
|
||||||
var tag = customData.copyTag();
|
var tag = customData.copyTag();
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ public abstract class HighlightButtonMixin {
|
||||||
if (btnPos == null) {
|
if (btnPos == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var fFace = HighlightButton.class.getDeclaredField("face");
|
var fFace = HighlightButton.class.getDeclaredField("face");
|
||||||
fFace.setAccessible(true);
|
fFace.setAccessible(true);
|
||||||
Object btnFace = fFace.get(hb); // 允许为 null:方块形
|
Object btnFace = fFace.get(hb); // 允许为 null:方块形
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,11 @@
|
||||||
"ae2.menu.ContainerPatternEncodingTermMenuMixin",
|
"ae2.menu.ContainerPatternEncodingTermMenuMixin",
|
||||||
"ae2.menu.MEStorageMenuMixin",
|
"ae2.menu.MEStorageMenuMixin",
|
||||||
"ae2.accessor.MEStorageMenuAccessor",
|
"ae2.accessor.MEStorageMenuAccessor",
|
||||||
"ae2.accessor.PatternEncodingTermMenuAccessor"
|
"ae2.accessor.PatternEncodingTermMenuAccessor",
|
||||||
|
"ae2.CraftingCPUClusterMixin",
|
||||||
|
"ae2.EncodedPatternItemMixin",
|
||||||
|
"ae2.QuartzCuttingKnifeItemMixin",
|
||||||
|
"ae2WTlib.ContainerUWirelessExPatternTerminalMixin"
|
||||||
],
|
],
|
||||||
"client": [
|
"client": [
|
||||||
"ae2.client.gui.AEBaseScreenMixin",
|
"ae2.client.gui.AEBaseScreenMixin",
|
||||||
|
|
@ -44,7 +48,11 @@
|
||||||
"extendedae.accessor.GuiExPatternTerminalAccessor",
|
"extendedae.accessor.GuiExPatternTerminalAccessor",
|
||||||
"extendedae.client.gui.GuiExPatternProviderMixin",
|
"extendedae.client.gui.GuiExPatternProviderMixin",
|
||||||
"ae2.client.gui.PatternProviderCloseMixin",
|
"ae2.client.gui.PatternProviderCloseMixin",
|
||||||
"hooks.ModelBakeryMixin"
|
"hooks.ModelBakeryMixin",
|
||||||
|
"ae2.accessor.AEBaseScreenInvoker",
|
||||||
|
"extendedae.accessor.GuiExPatternTerminalSlotsRowAccessor",
|
||||||
|
"extendedae.client.HighlightButtonMixin",
|
||||||
|
"PickFromWirelessMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user