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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DecorationContextGeneric context.static final DecorationContextDecoration context for wooden planks.static final DecorationContextDecoration context for stone blocks.static final DecorationContextDecoration context for wood. -
Constructor Summary
ConstructorsConstructorDescriptionDecorationContext(String name, DecorationMaterial material, DecorationType<?>... types) Creates a new decoration context. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhas(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 supportedDecorationTypes.
-
Field Details
-
GENERIC
-
WOOD
Decoration context for wood. Registersslabs,stairs,fences,fence gates,buttons,pressure plates,doors,trapdoors,signsandhanging 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,signsandhanging 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 supportedDecorationTypes. -
register
-
toString
-