Update protected -> public properties
This commit is contained in:
parent
e95e0f7d56
commit
fc715da518
@ -6,6 +6,7 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
|
||||
import net.minecraft.ChatFormatting
|
||||
import net.minecraft.client.gui.Font
|
||||
import net.minecraft.client.gui.GuiGraphics
|
||||
import net.minecraft.client.gui.screens.Screen
|
||||
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
|
||||
import net.minecraft.network.chat.Component
|
||||
import net.minecraft.world.entity.player.Inventory
|
||||
@ -66,14 +67,14 @@ abstract class MatteryScreen<T : MatteryMenu>(menu: T, inventory: Inventory, tit
|
||||
private var madeMainFrame = false
|
||||
|
||||
var font: Font
|
||||
get() = font
|
||||
get() = super.font
|
||||
set(font) { super.font = font }
|
||||
var hoveredSlot: Slot?
|
||||
get() = hoveredSlot
|
||||
get() = super.hoveredSlot
|
||||
set(value) { super.hoveredSlot = value }
|
||||
val quickCraftSlots: MutableSet<Slot> get() = quickCraftSlots
|
||||
val quickCraftingType get() = quickCraftingType
|
||||
val isQuickCrafting get() = isQuickCrafting
|
||||
val quickCraftSlots: MutableSet<Slot> get() = super.quickCraftSlots
|
||||
val quickCraftingType: Int get() = super.quickCraftingType
|
||||
val isQuickCrafting: Boolean get() = super.isQuickCrafting
|
||||
|
||||
fun renderItemStack(graphics: GuiGraphics, itemstack: ItemStack, countOverride: String? = null) {
|
||||
if (!itemstack.isEmpty) {
|
||||
|
Loading…
Reference in New Issue
Block a user