Class DecorationContext
java.lang.Object
org.moddingx.libx.base.decoration.DecorationContext
A context that defines, what
elements
should be registered with a DecoratedBlock
.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DecorationContext
Generic context.static final DecorationContext
Decoration context for wooden planks.static final DecorationContext
Decoration context for stone blocks.static final DecorationContext
Decoration context for wood. -
Constructor Summary
ConstructorDescriptionDecorationContext
(String name, DecorationMaterial material, DecorationType<?>... types) Creates a new decoration context. -
Method Summary
Modifier and TypeMethodDescriptionboolean
has
(DecorationType<?> type) Gets whether this context has a givenDecorationType
.material()
Gets the base material of theDecorationContext
.register
(ModX mod, DecoratedBlock block) toString()
Set<DecorationType<?>>
types()
Gets all supportedDecorationType
s.
-
Field Details
-
GENERIC
-
WOOD
Decoration context for wood. Registersslabs
,stairs
,fences
,fence gates
,buttons
,pressure plates
,doors
,trapdoors
,signs
andhanging signs
. -
PLANKS
Decoration context for wooden planks. Registerslogs
,stripped logs
,wood blocks
,stripped wood blocks
,slabs
,stairs
,fences
,fence gates
,buttons
,pressure plates
,doors
,trapdoors
,signs
andhanging signs
. -
STONE
-
-
Constructor Details
-
DecorationContext
Creates a new decoration context.- Parameters:
name
- The name of the context.types
- The types to register. This must includeDecorationType.BASE
.
-
-
Method Details
-
material
Gets the base material of theDecorationContext
. -
has
Gets whether this context has a givenDecorationType
. -
types
Gets all supportedDecorationType
s. -
register
-
toString
-