更新1.2.0-a增加创造物品栏,修改原版管理终端默认隐藏所有样板
This commit is contained in:
parent
b69abee69e
commit
8923fe7a62
|
|
@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||
loom.platform = forge
|
||||
|
||||
# Mod properties
|
||||
mod_version = 1.2.0
|
||||
mod_version = 1.2.0-a
|
||||
maven_group = com.extendedae_plus
|
||||
archives_name = extendedae_plus
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import com.extendedae_plus.config.ModConfigs;
|
|||
import com.extendedae_plus.init.ModBlocks;
|
||||
import com.extendedae_plus.init.ModBlockEntities;
|
||||
import com.extendedae_plus.init.ModItems;
|
||||
import com.extendedae_plus.init.ModCreativeTabs;
|
||||
|
||||
/**
|
||||
* ExtendedAE Plus 主mod类
|
||||
|
|
@ -29,6 +30,7 @@ public class ExtendedAEPlus {
|
|||
ModBlocks.BLOCKS.register(modEventBus);
|
||||
ModBlockEntities.BLOCK_ENTITY_TYPES.register(modEventBus);
|
||||
ModItems.ITEMS.register(modEventBus);
|
||||
ModCreativeTabs.TABS.register(modEventBus);
|
||||
|
||||
// 注册到Forge事件总线
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
|
|
|
|||
25
src/main/java/com/extendedae_plus/init/ModCreativeTabs.java
Normal file
25
src/main/java/com/extendedae_plus/init/ModCreativeTabs.java
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package com.extendedae_plus.init;
|
||||
|
||||
import com.extendedae_plus.ExtendedAEPlus;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.world.item.CreativeModeTab;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraftforge.registries.RegistryObject;
|
||||
|
||||
public final class ModCreativeTabs {
|
||||
private ModCreativeTabs() {}
|
||||
|
||||
public static final DeferredRegister<CreativeModeTab> TABS =
|
||||
DeferredRegister.create(Registries.CREATIVE_MODE_TAB, ExtendedAEPlus.MODID);
|
||||
|
||||
public static final RegistryObject<CreativeModeTab> MAIN = TABS.register("main",
|
||||
() -> CreativeModeTab.builder()
|
||||
.title(Component.translatable("itemGroup." + ExtendedAEPlus.MODID + ".main"))
|
||||
.icon(() -> ModItems.WIRELESS_TRANSCEIVER.get().getDefaultInstance())
|
||||
.displayItems((params, output) -> {
|
||||
// 将本模组物品加入创造物品栏
|
||||
output.accept(ModItems.WIRELESS_TRANSCEIVER.get());
|
||||
})
|
||||
.build());
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@ public abstract class GuiExPatternTerminalMixin extends AEBaseScreen<ContainerEx
|
|||
private IconButton toggleSlotsButton;
|
||||
|
||||
@Unique
|
||||
private boolean showSlots = true; // 默认显示槽位
|
||||
private boolean showSlots = false; // 默认显示槽位
|
||||
|
||||
@Unique
|
||||
private long currentlychooicepatterprovider = -1; // 当前选择的样板供应器ID
|
||||
|
|
|
|||
|
|
@ -13,5 +13,6 @@
|
|||
"message.extendedae_plus.uploading_pattern": "Uploading pattern...",
|
||||
"gui.extendedae_plus.group_header.choice": "Toggle Group Choice",
|
||||
"gui.extendedae_plus.group_header.choiceable": "Group is choiceable",
|
||||
"gui.extendedae_plus.group_header.not_choiceable": "Group is not choiceable"
|
||||
"gui.extendedae_plus.group_header.not_choiceable": "Group is not choiceable",
|
||||
"itemGroup.extendedae_plus.main": "ExtendedAE Plus"
|
||||
}
|
||||
|
|
@ -4,5 +4,6 @@
|
|||
"gui.expatternprovider.show_slots": "显示槽位",
|
||||
"gui.expatternprovider.clear_selection": "取消选择",
|
||||
"block.extendedae_plus.wireless_transceiver": "无线收发器",
|
||||
"item.extendedae_plus.wireless_transceiver": "无线收发器"
|
||||
"item.extendedae_plus.wireless_transceiver": "无线收发器",
|
||||
"itemGroup.extendedae_plus.main": "扩展AE Plus"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user