classpublicPriority 3
RangeIntAsset
com.hypixel.hytale.builtin.hytalegenerator.assets.delimiters.RangeIntAsset
implements JsonAssetWithMap<String, DefaultAssetMap<String, RangeIntAsset>>
2
Methods
2
Public Methods
4
Fields
1
Constructors
Constants
AssetBuilderCodec<String, RangeIntAsset>CODEC= AssetBuilderCodec.builder(
RangeIntAsset.class,
RangeIntAsset::new,
Co...
Constructors
public
RangeIntAsset()Methods
Public Methods (2)
public
RangeInt build()@Nonnull
public
String getId()@Nonnull
Fields
Private/Package Fields (4)
private
AssetExtraInfo.Data dataprivate
String idprivate
int maxExclusiveprivate
int minInclusiveInheritance
Parent
Current
Interface
Child
Use mouse wheel to zoom, drag to pan. Click nodes to navigate.
Related Classes
Source Code
package com.hypixel.hytale.builtin.hytalegenerator.assets.delimiters;
import com.hypixel.hytale.assetstore.AssetExtraInfo;
import com.hypixel.hytale.assetstore.codec.AssetBuilderCodec;
import com.hypixel.hytale.assetstore.map.DefaultAssetMap;
import com.hypixel.hytale.assetstore.map.JsonAssetWithMap;
import com.hypixel.hytale.builtin.hytalegenerator.delimiters.RangeInt;
import com.hypixel.hytale.codec.Codec;
import com.hypixel.hytale.codec.KeyedCodec;
import javax.annotation.Nonnull;
public class RangeIntAsset implements JsonAssetWithMap<String, DefaultAssetMap<String, RangeIntAsset>> {
public static final AssetBuilderCodec<String, RangeIntAsset> CODEC = AssetBuilderCodec.builder(
RangeIntAsset.class,
RangeIntAsset::new,
Codec.STRING,
(asset, id) -> asset.id = id,
config -> config.id,
(config, data) -> config.data = data,
config -> config.data
)
.append(new KeyedCodec<>("MinInclusive", Codec.INTEGER, true), (t, value) -> t.minInclusive = value, t -> t.minInclusive)
.add()
.append(new KeyedCodec<>("MaxExclusive", Codec.INTEGER, true), (t, value) -> t.maxExclusive = value, t -> t.maxExclusive)
.add()
.build();
private String id;
private AssetExtraInfo.Data data;
private int minInclusive = 0;
private int maxExclusive = 0;
public RangeIntAsset() {
}
@Nonnull
public RangeInt build() {
return new RangeInt(this.minInclusive, this.maxExclusive);
}
@Nonnull
public String getId() {
return "";
}
}