/// <summary> /// Initializes a new instance of the <see cref="Career" /> class. /// </summary> /// <param name="id">The unique id of the career (required).</param> /// <param name="name">The name of the career (required).</param> /// <param name="profession">The profession within the career (required).</param> public Career(string id = default(string), string name = default(string), CatalogType profession = default(CatalogType)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for Career and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for Career and cannot be null"); } else { this.Name = name; } // to ensure "profession" is required (not null) if (profession == null) { throw new InvalidDataException("profession is a required property for Career and cannot be null"); } else { this.Profession = profession; } }
/// <summary> /// Initializes a new instance of the <see cref="PotionEffect" /> class. /// </summary> /// <param name="type">The type of effect this potion represents (required).</param> /// <param name="amplifier">The aplifier of this potion (I, II, III, IV, V, ...) (required).</param> /// <param name="duration">The duration this potion lasts for (required).</param> public PotionEffect(CatalogType type = default(CatalogType), int?amplifier = default(int?), int?duration = default(int?)) { // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for PotionEffect and cannot be null"); } else { this.Type = type; } // to ensure "amplifier" is required (not null) if (amplifier == null) { throw new InvalidDataException("amplifier is a required property for PotionEffect and cannot be null"); } else { this.Amplifier = amplifier; } // to ensure "duration" is required (not null) if (duration == null) { throw new InvalidDataException("duration is a required property for PotionEffect and cannot be null"); } else { this.Duration = duration; } }
/// <summary> /// Initializes a new instance of the <see cref="EntityArchtype" /> class. /// </summary> /// <param name="type">The entity type represented by this archtype (required).</param> public EntityArchtype(CatalogType type = default(CatalogType)) { // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for EntityArchtype and cannot be null"); } else { this.Type = type; } }
/// <summary> /// Initializes a new instance of the <see cref="FireworkEffect" /> class. /// </summary> /// <param name="shape">The shape of the firework (required).</param> /// <param name="flickers">True if the firework flickers, false otherwise (required).</param> /// <param name="colors">The colors that make up this firework (required).</param> /// <param name="fadeColors">The fade colors that this firework has (required).</param> /// <param name="trail">True if this firework has a trail, false otherwise (required).</param> public FireworkEffect(CatalogType shape = default(CatalogType), bool?flickers = default(bool?), List <Color> colors = default(List <Color>), List <Color> fadeColors = default(List <Color>), bool?trail = default(bool?)) { // to ensure "shape" is required (not null) if (shape == null) { throw new InvalidDataException("shape is a required property for FireworkEffect and cannot be null"); } else { this.Shape = shape; } // to ensure "flickers" is required (not null) if (flickers == null) { throw new InvalidDataException("flickers is a required property for FireworkEffect and cannot be null"); } else { this.Flickers = flickers; } // to ensure "colors" is required (not null) if (colors == null) { throw new InvalidDataException("colors is a required property for FireworkEffect and cannot be null"); } else { this.Colors = colors; } // to ensure "fadeColors" is required (not null) if (fadeColors == null) { throw new InvalidDataException("fadeColors is a required property for FireworkEffect and cannot be null"); } else { this.FadeColors = fadeColors; } // to ensure "trail" is required (not null) if (trail == null) { throw new InvalidDataException("trail is a required property for FireworkEffect and cannot be null"); } else { this.Trail = trail; } }
/// <summary> /// Initializes a new instance of the <see cref="PatternLayer" /> class. /// </summary> /// <param name="shape">The base shape of this pattern (required).</param> /// <param name="color">The color of the pattern (required).</param> public PatternLayer(CatalogType shape = default(CatalogType), DyeColor color = default(DyeColor)) { // to ensure "shape" is required (not null) if (shape == null) { throw new InvalidDataException("shape is a required property for PatternLayer and cannot be null"); } else { this.Shape = shape; } // to ensure "color" is required (not null) if (color == null) { throw new InvalidDataException("color is a required property for PatternLayer and cannot be null"); } else { this.Color = color; } }
/// <summary> /// Initializes a new instance of the <see cref="HorseData" /> class. /// </summary> /// <param name="color">The color of the horse (required).</param> /// <param name="style">The style of the horse (required).</param> public HorseData(CatalogType color = default(CatalogType), CatalogType style = default(CatalogType)) { // to ensure "color" is required (not null) if (color == null) { throw new InvalidDataException("color is a required property for HorseData and cannot be null"); } else { this.Color = color; } // to ensure "style" is required (not null) if (style == null) { throw new InvalidDataException("style is a required property for HorseData and cannot be null"); } else { this.Style = style; } }
/// <summary> /// Initializes a new instance of the <see cref="WireAttachmentData" /> class. /// </summary> /// <param name="east">The type of wire attachment to the east of this entity (required).</param> /// <param name="north">The type of wire attachment to the north of this entity (required).</param> /// <param name="south">The type of wire attachment to the south of this entity (required).</param> /// <param name="west">The type of wire attachment to the west of this entity (required).</param> public WireAttachmentData(CatalogType east = default(CatalogType), CatalogType north = default(CatalogType), CatalogType south = default(CatalogType), CatalogType west = default(CatalogType)) { // to ensure "east" is required (not null) if (east == null) { throw new InvalidDataException("east is a required property for WireAttachmentData and cannot be null"); } else { this.East = east; } // to ensure "north" is required (not null) if (north == null) { throw new InvalidDataException("north is a required property for WireAttachmentData and cannot be null"); } else { this.North = north; } // to ensure "south" is required (not null) if (south == null) { throw new InvalidDataException("south is a required property for WireAttachmentData and cannot be null"); } else { this.South = south; } // to ensure "west" is required (not null) if (west == null) { throw new InvalidDataException("west is a required property for WireAttachmentData and cannot be null"); } else { this.West = west; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateWorldRequest" /> class. /// </summary> /// <param name="name">The name of the world (required).</param> /// <param name="allowCommands">allowCommands.</param> /// <param name="difficulty">Which difficulty the world is set to.</param> /// <param name="dimension">The the dimension that this world belongs to.</param> /// <param name="gameMode">Which game mode the world defaults to.</param> /// <param name="generator">Which generator to use for the world.</param> /// <param name="keepSpawnLoaded">keepSpawnLoaded.</param> /// <param name="loadOnStartup">loadOnStartup.</param> /// <param name="seed">The seed of the world.</param> /// <param name="usesMapFeatures">usesMapFeatures.</param> public CreateWorldRequest(string name = default(string), bool?allowCommands = default(bool?), CatalogType difficulty = default(CatalogType), string dimension = default(string), GameMode gameMode = default(GameMode), CatalogType generator = default(CatalogType), bool?keepSpawnLoaded = default(bool?), bool?loadOnStartup = default(bool?), long?seed = default(long?), bool?usesMapFeatures = default(bool?)) { // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for CreateWorldRequest and cannot be null"); } else { this.Name = name; } this.AllowCommands = allowCommands; this.Difficulty = difficulty; this.Dimension = dimension; this.GameMode = gameMode; this.Generator = generator; this.KeepSpawnLoaded = keepSpawnLoaded; this.LoadOnStartup = loadOnStartup; this.Seed = seed; this.UsesMapFeatures = usesMapFeatures; }
/// <summary> /// Initializes a new instance of the <see cref="ArmorSlotType" /> class. /// </summary> /// <param name="_operator">_operator.</param> /// <param name="key">key.</param> /// <param name="value">value.</param> public ArmorSlotType(OperatorEnum?_operator = default(OperatorEnum?), string key = default(string), CatalogType value = default(CatalogType)) { this.Operator = _operator; this.Key = key; this.Value = value; }
/// <summary> /// Initializes a new instance of the <see cref="BeaconData" /> class. /// </summary> /// <param name="primary">The primary effect of the beacon.</param> /// <param name="secondary">The secondary effect of the beacon.</param> public BeaconData(CatalogType primary = default(CatalogType), CatalogType secondary = default(CatalogType)) { this.Primary = primary; this.Secondary = secondary; }
/// <summary> /// Initializes a new instance of the <see cref="BlockState" /> class. /// </summary> /// <param name="data">Additional data attached to the block state.</param> /// <param name="type">The type of block this block state is from.</param> public BlockState(Dictionary <string, Object> data = default(Dictionary <string, Object>), CatalogType type = default(CatalogType)) { this.Data = data; this.Type = type; }
/// <summary> /// Initializes a new instance of the <see cref="EntitySnapshot" /> class. /// </summary> /// <param name="uuid">The uuid of the entity.</param> /// <param name="type">The type of the entity.</param> /// <param name="transform">The transform of the entity.</param> public EntitySnapshot(Guid?uuid = default(Guid?), CatalogType type = default(CatalogType), Transform transform = default(Transform)) { this.Uuid = uuid; this.Type = type; this.Transform = transform; }
/// <summary> /// Initializes a new instance of the <see cref="StructureData" /> class. /// </summary> /// <param name="author">The author of this structure (required).</param> /// <param name="ignoreEntities">True if entities are not part of this structure, false otherwise (required).</param> /// <param name="integrity">The integrity of the structure (required).</param> /// <param name="mode">The mode of the structure (required).</param> /// <param name="position">The position of the structure (required).</param> /// <param name="powered">True if the structure is powered, false otherwise (required).</param> /// <param name="seed">The seed of this structure (required).</param> /// <param name="showAir">True if the air blocks for this structure are shown, false otherwise (required).</param> /// <param name="showBoundingBox">True if the bounding box for this structure is shown, false otherwise (required).</param> /// <param name="size">The size of this structure (required).</param> public StructureData(string author = default(string), bool?ignoreEntities = default(bool?), float?integrity = default(float?), CatalogType mode = default(CatalogType), Vector3i position = default(Vector3i), bool?powered = default(bool?), long?seed = default(long?), bool?showAir = default(bool?), bool?showBoundingBox = default(bool?), Vector3i size = default(Vector3i)) { // to ensure "author" is required (not null) if (author == null) { throw new InvalidDataException("author is a required property for StructureData and cannot be null"); } else { this.Author = author; } // to ensure "ignoreEntities" is required (not null) if (ignoreEntities == null) { throw new InvalidDataException("ignoreEntities is a required property for StructureData and cannot be null"); } else { this.IgnoreEntities = ignoreEntities; } // to ensure "integrity" is required (not null) if (integrity == null) { throw new InvalidDataException("integrity is a required property for StructureData and cannot be null"); } else { this.Integrity = integrity; } // to ensure "mode" is required (not null) if (mode == null) { throw new InvalidDataException("mode is a required property for StructureData and cannot be null"); } else { this.Mode = mode; } // to ensure "position" is required (not null) if (position == null) { throw new InvalidDataException("position is a required property for StructureData and cannot be null"); } else { this.Position = position; } // to ensure "powered" is required (not null) if (powered == null) { throw new InvalidDataException("powered is a required property for StructureData and cannot be null"); } else { this.Powered = powered; } // to ensure "seed" is required (not null) if (seed == null) { throw new InvalidDataException("seed is a required property for StructureData and cannot be null"); } else { this.Seed = seed; } // to ensure "showAir" is required (not null) if (showAir == null) { throw new InvalidDataException("showAir is a required property for StructureData and cannot be null"); } else { this.ShowAir = showAir; } // to ensure "showBoundingBox" is required (not null) if (showBoundingBox == null) { throw new InvalidDataException("showBoundingBox is a required property for StructureData and cannot be null"); } else { this.ShowBoundingBox = showBoundingBox; } // to ensure "size" is required (not null) if (size == null) { throw new InvalidDataException("size is a required property for StructureData and cannot be null"); } else { this.Size = size; } }
/// <summary> /// Initializes a new instance of the <see cref="GuiIdProperty" /> class. /// </summary> /// <param name="_operator">_operator.</param> /// <param name="key">key.</param> /// <param name="value">value.</param> public GuiIdProperty(OperatorEnum?_operator = default(OperatorEnum?), string key = default(string), CatalogType value = default(CatalogType)) { this.Operator = _operator; this.Key = key; this.Value = value; }