@Environment(value=CLIENT) abstract class ResourcePackOrganizer.AbstractPack extends Object implements ResourcePackOrganizer.Pack
Modifier and Type | Field and Description |
---|---|
private ResourcePackProfile |
profile |
Constructor and Description |
---|
AbstractPack(ResourcePackProfile profile) |
Modifier and Type | Method and 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canBeDisabled, canBeEnabled, disable, enable, getDecoratedDescription, isEnabled
private final ResourcePackProfile profile
public AbstractPack(ResourcePackProfile profile)
protected abstract List<ResourcePackProfile> getCurrentList()
protected abstract List<ResourcePackProfile> getOppositeList()
public Identifier method_30286()
method_30286
in interface ResourcePackOrganizer.Pack
public ResourcePackCompatibility getCompatibility()
getCompatibility
in interface ResourcePackOrganizer.Pack
public Text getDisplayName()
getDisplayName
in interface ResourcePackOrganizer.Pack
public Text getDescription()
getDescription
in interface ResourcePackOrganizer.Pack
public ResourcePackSource getSource()
getSource
in interface ResourcePackOrganizer.Pack
public boolean isPinned()
isPinned
in interface ResourcePackOrganizer.Pack
public boolean isAlwaysEnabled()
isAlwaysEnabled
in interface ResourcePackOrganizer.Pack
protected void toggle()
protected void move(int offset)
public boolean canMoveTowardStart()
canMoveTowardStart
in interface ResourcePackOrganizer.Pack
public void moveTowardStart()
moveTowardStart
in interface ResourcePackOrganizer.Pack
public boolean canMoveTowardEnd()
canMoveTowardEnd
in interface ResourcePackOrganizer.Pack
public void moveTowardEnd()
moveTowardEnd
in interface ResourcePackOrganizer.Pack