Class ResourcePackOrganizer.AbstractPack
java.lang.Object
net.minecraft.client.gui.screen.pack.ResourcePackOrganizer.AbstractPack
- All Implemented Interfaces:
ResourcePackOrganizer.Pack
- Direct Known Subclasses:
ResourcePackOrganizer.DisabledPack,ResourcePackOrganizer.EnabledPack
- Enclosing class:
- ResourcePackOrganizer
@Environment(CLIENT) abstract class ResourcePackOrganizer.AbstractPack extends Object implements ResourcePackOrganizer.Pack
-
Field Summary
Fields Modifier and Type Field Description private ResourcePackProfileprofile -
Constructor Summary
Constructors Constructor Description AbstractPack(ResourcePackProfile profile) -
Method Summary
Modifier and Type Method Description booleancanMoveTowardEnd()booleancanMoveTowardStart()ResourcePackCompatibilitygetCompatibility()protected abstract List<ResourcePackProfile>getCurrentList()TextgetDescription()TextgetDisplayName()protected abstract List<ResourcePackProfile>getOppositeList()ResourcePackSourcegetSource()booleanisAlwaysEnabled()booleanisPinned()Identifiermethod_30286()protected voidmove(int offset)voidmoveTowardEnd()voidmoveTowardStart()protected voidtoggle()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.screen.pack.ResourcePackOrganizer.Pack
canBeDisabled, canBeEnabled, disable, enable, getDecoratedDescription, isEnabled
-
Field Details
-
profile
-
-
Constructor Details
-
AbstractPack
-
-
Method Details
-
getCurrentList
-
getOppositeList
-
method_30286
- Specified by:
method_30286in interfaceResourcePackOrganizer.Pack
-
getCompatibility
- Specified by:
getCompatibilityin interfaceResourcePackOrganizer.Pack
-
getDisplayName
- Specified by:
getDisplayNamein interfaceResourcePackOrganizer.Pack
-
getDescription
- Specified by:
getDescriptionin interfaceResourcePackOrganizer.Pack
-
getSource
- Specified by:
getSourcein interfaceResourcePackOrganizer.Pack
-
isPinned
public boolean isPinned()- Specified by:
isPinnedin interfaceResourcePackOrganizer.Pack
-
isAlwaysEnabled
public boolean isAlwaysEnabled()- Specified by:
isAlwaysEnabledin interfaceResourcePackOrganizer.Pack
-
toggle
protected void toggle() -
move
protected void move(int offset) -
canMoveTowardStart
public boolean canMoveTowardStart()- Specified by:
canMoveTowardStartin interfaceResourcePackOrganizer.Pack
-
moveTowardStart
public void moveTowardStart()- Specified by:
moveTowardStartin interfaceResourcePackOrganizer.Pack
-
canMoveTowardEnd
public boolean canMoveTowardEnd()- Specified by:
canMoveTowardEndin interfaceResourcePackOrganizer.Pack
-
moveTowardEnd
public void moveTowardEnd()- Specified by:
moveTowardEndin interfaceResourcePackOrganizer.Pack
-