Class OcculusTabProvider.Builder
java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.data.OcculusTabProvider.Builder
- Enclosing class:
- OcculusTabProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setBackground(net.minecraft.resources.ResourceLocation background) Sets the background of the occulus tab.setHeight(int height) Sets the height of the occulus tab.setIcon(net.minecraft.resources.ResourceLocation icon) Sets the icon of the occulus tab.setIndex(int index) Sets the index of the occulus tab.setRenderer(Class<? extends OcculusTabRenderer> renderer) Sets the renderer class of the occulus tab.setRenderer(String renderer) Sets the renderer class of the occulus tab.setStartX(int startX) Sets the initial X coordinate of the occulus tab.setStartY(int startY) Sets the initial Y coordinate of the occulus tab.setWidth(int width) Sets the width of the occulus tab.
-
Constructor Details
-
Builder
public Builder(int index)
-
-
Method Details
-
setIndex
Sets the index of the occulus tab.- Parameters:
index- The index to set.
-
setStartX
Sets the initial X coordinate of the occulus tab.- Parameters:
startX- The initial X coordinate to set.
-
setStartY
Sets the initial Y coordinate of the occulus tab.- Parameters:
startY- The initial Y coordinate to set.
-
setRenderer
Sets the renderer class of the occulus tab.- Parameters:
renderer- The renderer class to set.
-
setRenderer
Sets the renderer class of the occulus tab.- Parameters:
renderer- The renderer class to set.
-
setWidth
Sets the width of the occulus tab.- Parameters:
width- The width to set.
-
setHeight
Sets the height of the occulus tab.- Parameters:
height- The height to set.
-
setBackground
public OcculusTabProvider.Builder setBackground(net.minecraft.resources.ResourceLocation background) Sets the background of the occulus tab.- Parameters:
background- The background to set.
-
setIcon
Sets the icon of the occulus tab.- Parameters:
icon- The icon to set.
-
build
-