use of org.spongepowered.api.data.meta.PatternLayer in project SpongeCommon by SpongePowered.
the class TileEntityBannerDataProcessor method getValues.
@Override
protected Map<Key<?>, ?> getValues(TileEntityBanner entity) {
List<PatternLayer> layers = ((IMixinBanner) entity).getLayers();
DyeColor color = ((IMixinBanner) entity).getBaseColor();
return ImmutableMap.of(Keys.BANNER_BASE_COLOR, color, Keys.BANNER_PATTERNS, layers);
}
Aggregations