2018-12-20 00:39:10 +00:00
|
|
|
package net.shadowfacts.simplemultipart.container;
|
|
|
|
|
|
|
|
import net.minecraft.block.BlockState;
|
2018-12-25 15:20:44 +00:00
|
|
|
import net.shadowfacts.simplemultipart.api.MultipartView;
|
2018-12-20 00:39:10 +00:00
|
|
|
|
2018-12-24 22:16:38 +00:00
|
|
|
import java.util.Set;
|
2018-12-20 00:39:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
public class MultipartContainerBlockState extends BlockState {
|
|
|
|
|
2018-12-25 15:20:44 +00:00
|
|
|
private Set<MultipartView> parts;
|
2018-12-20 00:39:10 +00:00
|
|
|
|
2018-12-25 15:20:44 +00:00
|
|
|
public MultipartContainerBlockState(BlockState delegate, Set<MultipartView> parts) {
|
2018-12-20 00:39:10 +00:00
|
|
|
super(delegate.getBlock(), delegate.getEntries());
|
|
|
|
this.parts = parts;
|
|
|
|
}
|
|
|
|
|
2018-12-25 15:20:44 +00:00
|
|
|
public Set<MultipartView> getParts() {
|
2018-12-20 00:39:10 +00:00
|
|
|
return parts;
|
|
|
|
}
|
|
|
|
}
|