mcthings.decorators package¶
Submodules¶
mcthings.decorators.border_decorator module¶
-
class
mcthings.decorators.border_decorator.BorderDecorator(thing)¶ Bases:
mcthings.decorators.decorator.DecoratorA Border Decorator to build the border of the Thing.
Create a border of 1 block around the Thing
-
create()¶ Add a border to the Thing
Returns:
-
margin= 5¶
-
mcthings.decorators.decorator module¶
-
class
mcthings.decorators.decorator.Decorator(thing)¶ Bases:
objectA Decorator is able to decorate a Thing based on its characteristics.
If a Thing has decorators, they will be called after the build of the Thing.
-
block= Block(0, 0)¶ Base block for the decorator
-
create()¶ Create the decorator
Returns:
-
decorate()¶ Decorate the thing
Returns:
-
render()¶ Renders the decorator
Returns:
-
set_block(pos, block, data=None)¶
-
set_blocks(init_pos, end_pos, block)¶ Add a cuboid with the same block for all blocks and without specific data
-
mcthings.decorators.light_decorator module¶
-
class
mcthings.decorators.light_decorator.LightDecorator(thing)¶ Bases:
mcthings.decorators.decorator.DecoratorA Light Decorator to illuminate the Thing.
Add lights (torches) to Thing so you can see inside it
-
create()¶ Add a torch in the center of the Thing
Returns:
-