移除测试用HighlightTip

This commit is contained in:
Light_Quanta 2025-04-08 11:40:10 +08:00
parent 2fb1a1cf87
commit 520ed42e08
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -9,7 +9,6 @@ import com.atsuishio.superbwarfare.init.ModItems;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer; import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.core.component.DataComponents; import net.minecraft.core.component.DataComponents;
import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.Component;
import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionHand;
import net.minecraft.world.InteractionResult; import net.minecraft.world.InteractionResult;
import net.minecraft.world.InteractionResultHolder; import net.minecraft.world.InteractionResultHolder;
@ -187,15 +186,4 @@ public class ContainerBlockItem extends BlockItem implements GeoItem {
return stack; return stack;
} }
@Override
public @NotNull Component getHighlightTip(@NotNull ItemStack item, @NotNull Component displayName) {
// var tag = item.getOrDefault(DataComponents.CUSTOM_DATA, CustomData.EMPTY).copyTag();
// String entityTranslationKey = getEntityTranslationKey(tag.getString("EntityType"));
//
// super.getHighlightTip(item, displayName).
//
// tooltipComponents.add(Component.translatable(entityTranslationKey == null ? "des.superbwarfare.container.empty" : s).withStyle(ChatFormatting.GRAY));
return Component.literal("tesjlktkjesjlktlejk");
}
} }