Skip to content

Commit

Permalink
fix MapDecorationType
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio committed Mar 23, 2024
1 parent 6b86ca7 commit 4e98641
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 47 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,23 @@
*/
package org.spongepowered.api.map.decoration;

import org.spongepowered.api.data.type.DyeColor;
import org.spongepowered.api.map.MapCanvas;
import org.spongepowered.api.registry.DefaultedRegistryValue;
import org.spongepowered.api.util.annotation.CatalogedBy;

import java.util.Optional;

/**
* Represents a symbol that may be used on a {@link MapCanvas} as part of a
* {@link MapDecoration}.
* Represents a symbol that may be used on a {@link MapCanvas} as part of a {@link MapDecoration}.
*/
@CatalogedBy(MapDecorationTypes.class)
public interface MapDecorationType extends DefaultedRegistryValue {

/**
* Gets the corresponding {@link DyeColor} that this banner decoration type is.
*
* @return The {@link DyeColor} that this banner decoration type is.
*/
Optional<DyeColor> bannerColor();
}
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ public final class RegistryTypes {

public static final DefaultedRegistryType<JigsawPool> JIGSAW_POOL = RegistryTypes.minecraftKeyInServer("worldgen/template_pool");

public static final DefaultedRegistryType<MapDecorationType> MAP_DECORATION_TYPE = RegistryTypes.minecraftKeyInGame("map_decoration_type");

public static final DefaultedRegistryType<NoiseGeneratorConfig> NOISE_GENERATOR_CONFIG = RegistryTypes.minecraftKeyInServer("worldgen/noise_settings");

public static final DefaultedRegistryType<Noise> NOISE = RegistryTypes.minecraftKeyInServer("worldgen/noise");
Expand Down Expand Up @@ -401,8 +403,6 @@ public final class RegistryTypes {

public static final DefaultedRegistryType<MapDecorationOrientation> MAP_DECORATION_ORIENTATION = RegistryTypes.spongeKeyInGame("map_decoration_orientation");

public static final DefaultedRegistryType<MapDecorationType> MAP_DECORATION_TYPE = RegistryTypes.spongeKeyInGame("map_decoration_type");

public static final DefaultedRegistryType<MapShade> MAP_SHADE = RegistryTypes.spongeKeyInGame("map_shade");

public static final DefaultedRegistryType<MatterType> MATTER_TYPE = RegistryTypes.spongeKeyInGame("matter_type");
Expand Down

0 comments on commit 4e98641

Please sign in to comment.