Class ItemDecoration
java.lang.Object
group24.escaperoom.screens.editor.ItemDecoration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA single decoration that is applied to anItemstatic interfaceHow two types should be merged -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ItemDecoration.Decoration<com.badlogic.gdx.graphics.Color>static final ItemDecoration.Decoration<Boolean>static final ItemDecoration.Decoration<Boolean>static final ItemDecoration.Decoration<Boolean> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanReturn whether or not thisItemDecorationwould modify an Itemmerge(ItemDecoration other) Merge thisItemDecorationwith anothervoidremoveFrom(Item item) "Cancel out" this decoration<T> ItemDecorationset(ItemDecoration.Decoration<T> decoration, T val) Set the value of a givenItemDecoration.Decorationtoval
-
Field Details
-
COLOR
-
DIMMED
-
HIGHTLIGHT
-
GRAYSCALE
-
-
Constructor Details
-
ItemDecoration
public ItemDecoration()
-
-
Method Details
-
set
Set the value of a givenItemDecoration.Decorationtoval- Parameters:
decoration- can be null. if so, this decoration is removed from thisItemDecoration
-
merge
Merge thisItemDecorationwith another -
applyTo
-
removeFrom
"Cancel out" this decoration -
hasModifications
public boolean hasModifications()Return whether or not thisItemDecorationwould modify an Item
-