Package net.mcreator.element.parts.gui
Class InputSlot
java.lang.Object
net.mcreator.element.parts.gui.GUIComponent
net.mcreator.element.parts.gui.Slot
net.mcreator.element.parts.gui.InputSlot
- All Implemented Interfaces:
Comparable<GUIComponent>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.element.parts.gui.GUIComponent
GUIComponent.AnchorPoint, GUIComponent.GSONAdapter, GUIComponent.Unknown
-
Field Summary
Fields inherited from class net.mcreator.element.parts.gui.Slot
color, disablePickup, dropItemsWhenNotBound, id, onSlotChanged, onStackTransfer, onTakenFromSlot
Fields inherited from class net.mcreator.element.parts.gui.GUIComponent
anchorPoint, locked, uuid, x, y
-
Constructor Summary
ConstructorDescriptionInputSlot
(int id, int x, int y, Color color, LogicProcedure disablePickup, LogicProcedure disablePlacement, boolean dropItemsWhenNotBound, Procedure onSlotChanged, Procedure onTakenFromSlot, Procedure onStackTransfer, MItemBlock inputLimit) -
Method Summary
Methods inherited from class net.mcreator.element.parts.gui.Slot
getHeight, getWeight, getWidth, paintComponent
Methods inherited from class net.mcreator.element.parts.gui.GUIComponent
compareTo, equals, getAnchorPoint, getX, getY, gx, gy, hashCode, isSizeKnown, toString
-
Field Details
-
inputLimit
-
disablePlacement
-
-
Constructor Details
-
InputSlot
public InputSlot(int id, int x, int y, Color color, LogicProcedure disablePickup, LogicProcedure disablePlacement, boolean dropItemsWhenNotBound, Procedure onSlotChanged, Procedure onTakenFromSlot, Procedure onStackTransfer, MItemBlock inputLimit)
-
-
Method Details
-
getName
Description copied from class:GUIComponent
Returns the name of the component. Name should be Java and registry name compatible.The name should be unique for the components that need it.
- Specified by:
getName
in classGUIComponent
- Returns:
- Component name
-