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 ResourcePackProfile
profile
-
Constructor Summary
Constructors Constructor Description AbstractPack(ResourcePackProfile profile)
-
Method Summary
Modifier and Type Method Description boolean
canMoveTowardEnd()
boolean
canMoveTowardStart()
ResourcePackCompatibility
getCompatibility()
protected abstract List<ResourcePackProfile>
getCurrentList()
Text
getDescription()
Text
getDisplayName()
protected abstract List<ResourcePackProfile>
getOppositeList()
ResourcePackSource
getSource()
boolean
isAlwaysEnabled()
boolean
isPinned()
Identifier
method_30286()
protected void
move(int offset)
void
moveTowardEnd()
void
moveTowardStart()
protected void
toggle()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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_30286
in interfaceResourcePackOrganizer.Pack
-
getCompatibility
- Specified by:
getCompatibility
in interfaceResourcePackOrganizer.Pack
-
getDisplayName
- Specified by:
getDisplayName
in interfaceResourcePackOrganizer.Pack
-
getDescription
- Specified by:
getDescription
in interfaceResourcePackOrganizer.Pack
-
getSource
- Specified by:
getSource
in interfaceResourcePackOrganizer.Pack
-
isPinned
public boolean isPinned()- Specified by:
isPinned
in interfaceResourcePackOrganizer.Pack
-
isAlwaysEnabled
public boolean isAlwaysEnabled()- Specified by:
isAlwaysEnabled
in interfaceResourcePackOrganizer.Pack
-
toggle
protected void toggle() -
move
protected void move(int offset) -
canMoveTowardStart
public boolean canMoveTowardStart()- Specified by:
canMoveTowardStart
in interfaceResourcePackOrganizer.Pack
-
moveTowardStart
public void moveTowardStart()- Specified by:
moveTowardStart
in interfaceResourcePackOrganizer.Pack
-
canMoveTowardEnd
public boolean canMoveTowardEnd()- Specified by:
canMoveTowardEnd
in interfaceResourcePackOrganizer.Pack
-
moveTowardEnd
public void moveTowardEnd()- Specified by:
moveTowardEnd
in interfaceResourcePackOrganizer.Pack
-