├── .gitmodules ├── src └── MiNET │ ├── .nuget │ ├── NuGet.exe │ └── NuGet.Config │ ├── TestPlugin │ ├── 10000.png │ ├── 2000.png │ ├── 4000.png │ ├── Char8.png │ ├── IMG_0220.png │ ├── test_skin.png │ ├── texturemap_redux.png │ └── SafePay │ │ └── SafePayPlugin.cs │ ├── MiNET │ ├── Blocks │ │ ├── Data │ │ │ ├── canonical_block_states.nbt │ │ │ └── r12_to_current_block_map.bin │ │ ├── Chest.cs │ │ ├── Furnace.cs │ │ ├── Slime.cs │ │ ├── Water.cs │ │ ├── WoodenDoor.cs │ │ ├── BirchDoor.cs │ │ ├── FenceGate.cs │ │ ├── AcaciaDoor.cs │ │ ├── DarkOakDoor.cs │ │ ├── JungleDoor.cs │ │ ├── SpruceDoor.cs │ │ ├── Tnt.cs │ │ ├── TrappedChest.cs │ │ ├── AcaciaButton.cs │ │ ├── BlastFurnace.cs │ │ ├── PurPurStairs.cs │ │ ├── ShulkerBox.cs │ │ ├── EndRod.cs │ │ ├── BirchButton.cs │ │ ├── BirchFenceGate.cs │ │ ├── LitBlastFurnace.cs │ │ ├── PoweredRepeater.cs │ │ ├── UnpoweredRepeater.cs │ │ ├── AcaciaFenceGate.cs │ │ ├── DarkOakFenceGate.cs │ │ ├── JungleButton.cs │ │ ├── JungleFenceGate.cs │ │ ├── SpruceButton.cs │ │ ├── SpruceFenceGate.cs │ │ ├── StoneButton.cs │ │ ├── DarkOakButton.cs │ │ ├── UnlitRedstoneTorch.cs │ │ ├── UnpoweredComparator.cs │ │ ├── WoodenButton.cs │ │ ├── RedSandstoneStairs.cs │ │ ├── RepeaterBase.cs │ │ ├── Stonecutter.cs │ │ ├── BlueGlazedTerracotta.cs │ │ ├── CyanGlazedTerracotta.cs │ │ ├── GrayGlazedTerracotta.cs │ │ ├── LimeGlazedTerracotta.cs │ │ ├── LitRedstoneOre.cs │ │ ├── Netherreactor.cs │ │ ├── PinkGlazedTerracotta.cs │ │ ├── Pumpkin.cs │ │ ├── RedGlazedTerracotta.cs │ │ ├── Sponge.cs │ │ ├── BlackGlazedTerracotta.cs │ │ ├── BrownGlazedTerracotta.cs │ │ ├── ComparatorBase.cs │ │ ├── Concrete.cs │ │ ├── EndStone.cs │ │ ├── GreenGlazedTerracotta.cs │ │ ├── Jukebox.cs │ │ ├── LitRedstoneLamp.cs │ │ ├── OrangeGlazedTerracotta.cs │ │ ├── Piston.cs │ │ ├── Podzol.cs │ │ ├── PurpleGlazedTerracotta.cs │ │ ├── Sandstone.cs │ │ ├── SilverGlazedTerracotta.cs │ │ ├── WhiteGlazedTerracotta.cs │ │ ├── YellowGlazedTerracotta.cs │ │ ├── BrickBlock.cs │ │ ├── EndBricks.cs │ │ ├── GoldBlock.cs │ │ ├── IronBlock.cs │ │ ├── LapisBlock.cs │ │ ├── MagentaGlazedTerracotta.cs │ │ ├── Obsidian.cs │ │ ├── SoulSand.cs │ │ ├── DiamondBlock.cs │ │ ├── Dropper.cs │ │ ├── FrostedIce.cs │ │ ├── LightBlueGlazedTerracotta.cs │ │ ├── NetherBrick.cs │ │ ├── Netherrack.cs │ │ ├── PackedIce.cs │ │ ├── Prismarine.cs │ │ ├── QuartzBlock.cs │ │ ├── RedMushroom.cs │ │ ├── RedSandstone.cs │ │ ├── StickyPiston.cs │ │ ├── BrickStairs.cs │ │ ├── EmeraldBlock.cs │ │ ├── FlowingWater.cs │ │ ├── HardenedClay.cs │ │ ├── Log2.cs │ │ └── PoweredComparator.cs │ ├── Net │ │ ├── EducationUriResource.cs │ │ ├── UpdateSubChunkBlocksPacketEntry.cs │ │ ├── Experiments.cs │ │ └── HeightMapData.cs │ ├── Utils │ │ ├── Skins │ │ │ ├── Cape.cs │ │ │ └── Animation.cs │ │ └── Nbt │ │ │ └── Nbt.cs │ ├── Particles │ │ └── Particle.cs │ ├── Worlds │ │ ├── CraftNetAnvilWorldProvider.cs │ │ ├── Dimension.cs │ │ └── Difficulty.cs │ ├── CertificateChain.cs │ ├── Entities │ │ ├── IAgeable.cs │ │ ├── IRideable.cs │ │ └── IEternal.cs │ ├── UI │ │ ├── Element.cs │ │ ├── Label.cs │ │ └── CustomElement.cs │ ├── Plugins │ │ ├── IStartup.cs │ │ ├── IParameterSerializer.cs │ │ └── ICommandFilter.cs │ ├── ConnectionState.cs │ └── Items │ │ ├── ItemDye.cs │ │ ├── ItemArrow.cs │ │ ├── ItemWheat.cs │ │ ├── ItemSugar.cs │ │ ├── ItemDiamond.cs │ │ ├── ItemSaddle.cs │ │ ├── ItemApple.cs │ │ ├── ItemBread.cs │ │ ├── ItemCompass.cs │ │ ├── ItemGoldIngot.cs │ │ ├── ItemIronIngot.cs │ │ ├── ItemRedstone.cs │ │ ├── ItemAir.cs │ │ ├── ItemCookie.cs │ │ ├── ItemMelon.cs │ │ ├── ItemBeetroot.cs │ │ ├── ItemGoldNugget.cs │ │ ├── ItemIronNugget.cs │ │ ├── ItemCookedBeef.cs │ │ ├── ItemPumpkinPie.cs │ │ ├── ItemBakedPotato.cs │ │ ├── ItemTurtleHelmet.cs │ │ ├── ItemBlazeRod.cs │ │ ├── ItemGoldenCarrot.cs │ │ ├── ItemCoal.cs │ │ ├── ItemCookedChicken.cs │ │ ├── ItemMuttonCooked.cs │ │ ├── ItemBlazePowder.cs │ │ ├── ItemCookedPorkchop.cs │ │ └── ItemIronAxe.cs │ ├── MiNET.Console │ └── runtimeconfig.template.json │ ├── MiNET.Client │ ├── Properties │ │ └── launchSettings.json │ └── MiNET.Client.csproj │ ├── MiNET.ServiceKiller │ ├── runtimeconfig.template.json │ ├── server.conf │ └── MiNET.ServiceKiller.csproj │ ├── MiNET.sln.GhostDoc.xml │ ├── MiNET.Plotter │ └── MiNET.Plotter.csproj │ ├── MiNET.BuilderBase │ ├── MiNET.BuilderBase.csproj │ ├── Masks │ │ ├── AnyBlockMask.cs │ │ ├── BlockMask.cs │ │ └── NotAirBlocksMask.cs │ ├── MiNET.BuilderBase.csproj.DotSettings │ ├── BuilderBaseItemFactory.cs │ └── Commands │ │ └── HistoryCommands.cs │ ├── MiNET.Test │ ├── Net │ │ └── DatagramTests.cs │ └── MiNETTests.csproj │ └── MiNET.BuilderBase.Tests │ └── MiNET.BuilderBase.Tests.csproj └── .github ├── dependabot.yml └── workflows └── dotnetcore.yml /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/MiNET/.nuget/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/.nuget/NuGet.exe -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/10000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/10000.png -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/2000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/2000.png -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/4000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/4000.png -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/Char8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/Char8.png -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/IMG_0220.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/IMG_0220.png -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/test_skin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/test_skin.png -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/texturemap_redux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/texturemap_redux.png -------------------------------------------------------------------------------- /src/MiNET/TestPlugin/SafePay/SafePayPlugin.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/TestPlugin/SafePay/SafePayPlugin.cs -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Data/canonical_block_states.nbt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/MiNET/Blocks/Data/canonical_block_states.nbt -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Data/r12_to_current_block_map.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NiclasOlofsson/MiNET/HEAD/src/MiNET/MiNET/Blocks/Data/r12_to_current_block_map.bin -------------------------------------------------------------------------------- /src/MiNET/MiNET.Console/runtimeconfig.template.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "configProperties": { 4 | "System.GC.Server": true, 5 | "System.GC.Concurrent": true 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET.Client/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "MiNET.Client": { 4 | "commandName": "Project", 5 | "commandLineArgs": "192.168.0.4" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET.ServiceKiller/runtimeconfig.template.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "configProperties": { 4 | "System.GC.Server": true, 5 | "System.GC.Concurrent": true 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /src/MiNET/.nuget/NuGet.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.sln.GhostDoc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | *.min.js 4 | jquery*.js 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.ServiceKiller/server.conf: -------------------------------------------------------------------------------- 1 | #DO NOT REMOVE THIS LINE - MiNET Config 2 | #UseEncryption=false 3 | EnableEdu=false 4 | 5 | # REGEX docs! https://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx 6 | TracePackets.Include= 7 | TracePackets.Exclude=.* 8 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.Plotter/MiNET.Plotter.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | net6.0 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase/MiNET.BuilderBase.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | net6.0 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase/Masks/AnyBlockMask.cs: -------------------------------------------------------------------------------- 1 | using MiNET.Utils; 2 | using MiNET.Utils.Vectors; 3 | 4 | namespace MiNET.BuilderBase.Masks 5 | { 6 | public class AnyBlockMask : Mask 7 | { 8 | public AnyBlockMask() 9 | { 10 | } 11 | 12 | public override bool Test(BlockCoordinates coordinates) 13 | { 14 | return true; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET.Test/Net/DatagramTests.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.TestTools.UnitTesting; 2 | using MiNET.Net; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace MiNET.Net.Tests 8 | { 9 | [TestClass()] 10 | public class DatagramTests 11 | { 12 | [TestMethod()] 13 | public void TryAddMessagePartTest() 14 | { 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Net/EducationUriResource.cs: -------------------------------------------------------------------------------- 1 | namespace MiNET.Net; 2 | 3 | public class EducationUriResource 4 | { 5 | public string ButtonName { get; set; } 6 | public string LinkUri { get; set; } 7 | 8 | public EducationUriResource() 9 | { 10 | 11 | } 12 | 13 | public EducationUriResource(string buttonName, string linkUri) 14 | { 15 | ButtonName = buttonName; 16 | LinkUri = linkUri; 17 | } 18 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Net/UpdateSubChunkBlocksPacketEntry.cs: -------------------------------------------------------------------------------- 1 | using MiNET.Utils.Vectors; 2 | 3 | namespace MiNET.Net; 4 | 5 | public class UpdateSubChunkBlocksPacketEntry 6 | { 7 | public BlockCoordinates Coordinates { get; set; } 8 | public uint BlockRuntimeId { get; set; } 9 | public uint Flags { get; set; } 10 | public long SyncedUpdatedEntityUniqueId { get; set; } 11 | public uint SyncedUpdateType { get; set; } 12 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Net/Experiments.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MiNET.Net 4 | { 5 | public class Experiments : List 6 | { 7 | 8 | public class Experiment 9 | { 10 | public string Name { get; } 11 | public bool Enabled { get; } 12 | 13 | public Experiment(string name, bool enabled) 14 | { 15 | Name = name; 16 | Enabled = enabled; 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase/MiNET.BuilderBase.csproj.DotSettings: -------------------------------------------------------------------------------- 1 | 2 | False -------------------------------------------------------------------------------- /src/MiNET/MiNET/Utils/Skins/Cape.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MiNET.Utils.Skins 4 | { 5 | public class Cape : ICloneable 6 | { 7 | public string Id { get; set; } 8 | public int ImageHeight { get; set; } 9 | public int ImageWidth { get; set; } 10 | public byte[] Data { get; set; } 11 | public bool OnClassicSkin { get; set; } 12 | 13 | public Cape() 14 | { 15 | Data = new byte[0]; 16 | } 17 | 18 | public object Clone() => MemberwiseClone(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "nuget" # See documentation for possible values 9 | directory: "/src/MiNET" # Location of package manifests 10 | schedule: 11 | interval: "daily" 12 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase/BuilderBaseItemFactory.cs: -------------------------------------------------------------------------------- 1 | using fNbt; 2 | using MiNET.BuilderBase.Tools; 3 | using MiNET.Items; 4 | 5 | namespace MiNET.BuilderBase 6 | { 7 | public class BuilderBaseItemFactory : ICustomItemFactory 8 | { 9 | public Item GetItem(short id, short metadata, int count) 10 | { 11 | if (id == new BrushTool().Id) 12 | { 13 | return new BrushTool(); 14 | } 15 | else if (id == new DistanceWand().Id) 16 | { 17 | return new DistanceWand(); 18 | } 19 | else if (id == new TeleportTool().Id) 20 | { 21 | return new TeleportTool(); 22 | } 23 | 24 | return null; 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase/Masks/BlockMask.cs: -------------------------------------------------------------------------------- 1 | using MiNET.Blocks; 2 | using MiNET.Utils; 3 | using MiNET.Utils.Vectors; 4 | using MiNET.Worlds; 5 | 6 | namespace MiNET.BuilderBase.Masks 7 | { 8 | public class BlockMask : Mask 9 | { 10 | private readonly Level _level; 11 | private readonly Block _from; 12 | 13 | public BlockMask(Level level, Block from) 14 | { 15 | _level = level; 16 | _from = @from; 17 | } 18 | 19 | public override bool Test(BlockCoordinates coordinates) 20 | { 21 | var to = _level.GetBlock(coordinates); 22 | 23 | return to.Id == _from.Id && to.Metadata == _from.Metadata; 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase/Commands/HistoryCommands.cs: -------------------------------------------------------------------------------- 1 | using MiNET.Plugins.Attributes; 2 | 3 | namespace MiNET.BuilderBase.Commands 4 | { 5 | public class HistoryCommands // MUST NOT EXTEND RedoableCommand base. 6 | { 7 | [Command(Description = "Undo the last action")] 8 | public void Undo(Player player, int numberOfUndo = 1) 9 | { 10 | RegionSelector selector = RegionSelector.GetSelector(player); 11 | selector.Undo(numberOfUndo); 12 | } 13 | 14 | [Command(Description = "Redo the last action (from history)")] 15 | public void Redo(Player player, int numberOfRedo = 1) 16 | { 17 | RegionSelector selector = RegionSelector.GetSelector(player); 18 | selector.Redo(numberOfRedo); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Utils/Skins/Animation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MiNET.Utils.Skins 4 | { 5 | 6 | // Animation Type 7 | // 0 - None 8 | // 1 - Face 9 | // 2 - Body 32 10 | // 3 - Body 128 11 | 12 | public class Animation : ICloneable 13 | { 14 | public byte[] Image { get; set; } 15 | public int ImageWidth { get; set; } 16 | public int ImageHeight { get; set; } 17 | public float FrameCount { get; set; } 18 | public int Expression { get; set; } 19 | public int Type { get; set; } // description above 20 | 21 | // doesn't have reference-type fields so use MemberwiseClone 22 | public object Clone() 23 | { 24 | var clone = (Animation) MemberwiseClone(); 25 | clone.Image = Image?.Clone() as byte[]; 26 | return clone; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase/Masks/NotAirBlocksMask.cs: -------------------------------------------------------------------------------- 1 | using MiNET.Utils; 2 | using MiNET.Utils.Vectors; 3 | using MiNET.Worlds; 4 | 5 | namespace MiNET.BuilderBase.Masks 6 | { 7 | public class NotAirBlocksMask : Mask 8 | { 9 | private readonly Level _level; 10 | 11 | public NotAirBlocksMask(Level level) 12 | { 13 | _level = level; 14 | OriginalMask = "Not air"; 15 | } 16 | 17 | public override bool Test(BlockCoordinates coordinates) 18 | { 19 | return !_level.IsAir(coordinates); 20 | } 21 | } 22 | 23 | public class AirBlocksMask : Mask 24 | { 25 | private readonly Level _level; 26 | 27 | public AirBlocksMask(Level level) 28 | { 29 | _level = level; 30 | OriginalMask = "Air"; 31 | } 32 | 33 | public override bool Test(BlockCoordinates coordinates) 34 | { 35 | return _level.IsAir(coordinates); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET.Client/MiNET.Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | net6.0 4 | 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | PreserveNewest 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | PreserveNewest 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.BuilderBase.Tests/MiNET.BuilderBase.Tests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | all 15 | runtime; build; native; contentfiles; analyzers; buildtransitive 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/MiNET/MiNET/Net/HeightMapData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | 4 | namespace MiNET.Net; 5 | 6 | public class HeightMapData 7 | { 8 | public short[] Heights { get; } 9 | 10 | public HeightMapData(short[] heights) 11 | { 12 | if (heights.Length != 256) 13 | throw new ArgumentException("Expected 256 data entries"); 14 | 15 | Heights = heights; 16 | } 17 | 18 | public int GetHeight(int x, int z) 19 | { 20 | return Heights[((z & 0xf) << 4) | (x & 0xf)]; 21 | } 22 | 23 | public bool IsAllTooLow => Heights.Any(x => x > 0); 24 | public bool IsAllTooHigh => Heights.Any(x => x <= 15); 25 | } 26 | 27 | public enum SubChunkPacketHeightMapType : byte 28 | { 29 | NoData = 0, 30 | Data = 1, 31 | AllTooHigh = 2, 32 | AllTooLow = 3 33 | } 34 | 35 | public enum SubChunkRequestResult : byte 36 | { 37 | Success = 1, 38 | NoSuchChunk = 2, 39 | WrongDimension = 3, 40 | NullPlayer = 4, 41 | YIndexOutOfBounds = 5, 42 | SuccessAllAir = 6 43 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Particles/Particle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Numerics; 4 | using System.Text; 5 | using MiNET.Net; 6 | using MiNET.Worlds; 7 | 8 | namespace MiNET.Particles 9 | { 10 | public class Particle 11 | { 12 | protected string Name { get; set; } 13 | protected Level Level { get; set; } 14 | public Vector3 Position { get; set; } 15 | 16 | public Particle(string name, Level level) : this(level) 17 | { 18 | Name = name; 19 | } 20 | 21 | public Particle(Level level) 22 | { 23 | Level = level; 24 | } 25 | 26 | public virtual void Spawn(Player[] players) 27 | { 28 | var pk = McpeSpawnParticleEffect.CreateObject(); 29 | pk.particleName = Name; 30 | pk.position = Position; 31 | pk.dimensionId = 0; 32 | pk.entityId = -1; 33 | Level.RelayBroadcast(players, pk); 34 | } 35 | 36 | public virtual void Spawn() 37 | { 38 | Spawn(Level.GetAllPlayers()); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.Test/MiNETTests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | false 4 | true 5 | net6.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | PreserveNewest 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/MiNET/MiNET.ServiceKiller/MiNET.ServiceKiller.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | net6.0 4 | 5 | Exe 6 | MiNET.ServiceKiller.Emulator 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | PreserveNewest 15 | 16 | 17 | PreserveNewest 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/MiNET/MiNET/Worlds/CraftNetAnvilWorldProvider.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | -------------------------------------------------------------------------------- /.github/workflows/dotnetcore.yml: -------------------------------------------------------------------------------- 1 | name: .NET Core 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | nuget: 10 | name: Build & Publish 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v1 14 | 15 | - name: Setup .NET 16 | uses: actions/setup-dotnet@v1 17 | with: 18 | dotnet-version: 6.0.* 19 | 20 | - name: Generate build number 21 | id: buildnumber 22 | uses: einaregilsson/build-number@v3 23 | with: 24 | token: ${{secrets.github_token}} 25 | 26 | - name: Dotnet Restore 27 | working-directory: src/MiNET/MiNET 28 | run: dotnet restore 29 | 30 | - name: Build & Pack 31 | working-directory: src/MiNET/MiNET 32 | run: | 33 | export PKG_VERSION=1.0.${{ steps.buildnumber.outputs.build_number }} 34 | dotnet build --configuration Release 35 | dotnet pack --configuration Release -o ./nuget -p:PackageVersion="$PKG_VERSION" --include-symbols --include-source 36 | 37 | - name: Publish Artifacts 38 | shell: bash 39 | working-directory: src/MiNET/MiNET 40 | run: dotnet nuget push ./nuget/*.symbols.nupkg -s "https://api.nuget.org/v3/index.json" -k ${{ secrets.NUGET_KEY }} --skip-duplicate 41 | -------------------------------------------------------------------------------- /src/MiNET/MiNET/CertificateChain.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET 27 | { 28 | public class CertificateChain 29 | { 30 | } 31 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Entities/IAgeable.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Entities 27 | { 28 | public interface IAgeable 29 | { 30 | } 31 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/UI/Element.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.UI 27 | { 28 | public abstract class Element 29 | { 30 | public string Text { get; set; } 31 | } 32 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Plugins/IStartup.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Plugins 27 | { 28 | public interface IStartup 29 | { 30 | void Configure(MiNetServer server); 31 | } 32 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Entities/IRideable.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | // The contents of this file are subject to the Common Public Attribution 3 | // License Version 1.0. (the "License"); you may not use this file except in 4 | // compliance with the License. You may obtain a copy of the License at 5 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 6 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 7 | // and 15 have been added to cover use of software over a computer network and 8 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 9 | // been modified to be consistent with Exhibit B. 10 | // 11 | // Software distributed under the License is distributed on an "AS IS" basis, 12 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 13 | // the specific language governing rights and limitations under the License. 14 | // 15 | // The Original Code is MiNET. 16 | // 17 | // The Original Developer is the Initial Developer. The Initial Developer of 18 | // the Original Code is Niclas Olofsson. 19 | // 20 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2021 Niclas Olofsson. 21 | // All Rights Reserved. 22 | #endregion 23 | 24 | namespace MiNET.Entities 25 | { 26 | public interface IRideable 27 | { 28 | Entity Rider { get; } 29 | bool IsRidden { get; } 30 | } 31 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Chest.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Chest : ChestBase 29 | { 30 | public Chest() : base(54) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Utils/Nbt/Nbt.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | using fNbt; 27 | 28 | namespace MiNET.Utils.Nbt 29 | { 30 | public class Nbt 31 | { 32 | public NbtFile NbtFile { get; set; } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Worlds/Dimension.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Worlds 27 | { 28 | public enum Dimension 29 | { 30 | Overworld = 0, 31 | Nether = 1, 32 | TheEnd = 2 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Furnace.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Furnace : FurnaceBase 29 | { 30 | public Furnace() : base(61) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Slime.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | 27 | namespace MiNET.Blocks 28 | { 29 | public partial class Slime : Block 30 | { 31 | public Slime() : base(165) 32 | { 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Water.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Water : Stationary 29 | { 30 | public Water() : base(9) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/UI/Label.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.UI 27 | { 28 | public class Label : CustomElement 29 | { 30 | public Label() 31 | { 32 | Type = "label"; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/WoodenDoor.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class WoodenDoor : DoorBase 29 | { 30 | public WoodenDoor() : base(64) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/ConnectionState.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET 27 | { 28 | public enum ConnectionState 29 | { 30 | Unknown, 31 | Unconnected, 32 | Connecting, 33 | Connected 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Entities/IEternal.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Entities 27 | { 28 | interface IEternal 29 | { 30 | void Praise(Player player); 31 | 32 | int Minions { get; } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemDye.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemDye : Item 29 | { 30 | public ItemDye() : base("minecraft:dye", 351) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/UI/CustomElement.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.UI 27 | { 28 | public abstract class CustomElement : Element 29 | { 30 | public string Type { get; protected set; } 31 | } 32 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BirchDoor.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BirchDoor : DoorBase 29 | { 30 | public BirchDoor() : base(194) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/FenceGate.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class FenceGate : FenceGateBlocks 29 | { 30 | public FenceGate() : base(107) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemArrow.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemArrow : Item 29 | { 30 | public ItemArrow() : base("minecraft:arrow", 262) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemWheat.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemWheat : Item 29 | { 30 | public ItemWheat() : base("minecraft:wheat", 296) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Worlds/Difficulty.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Worlds 27 | { 28 | public enum Difficulty 29 | { 30 | Peaceful, 31 | Easy, 32 | Normal, 33 | Hard, 34 | Hardcore 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/AcaciaDoor.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class AcaciaDoor : DoorBase 29 | { 30 | public AcaciaDoor() : base(196) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/DarkOakDoor.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class DarkOakDoor : DoorBase 29 | { 30 | public DarkOakDoor() : base(197) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/JungleDoor.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class JungleDoor : DoorBase 29 | { 30 | public JungleDoor() : base(195) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/SpruceDoor.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class SpruceDoor : DoorBase 29 | { 30 | public SpruceDoor() : base(193) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Tnt.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Tnt : Block 29 | { 30 | public Tnt() : base(46) 31 | { 32 | IsFlammable = true; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/TrappedChest.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class TrappedChest : ChestBase 29 | { 30 | public TrappedChest() : base(146) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemSugar.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemSugar : Item 29 | { 30 | public ItemSugar() : base("minecraft:sugar", 353) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Plugins/IParameterSerializer.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Plugins 27 | { 28 | public interface IParameterSerializer 29 | { 30 | void Deserialize(Player player, string input); 31 | } 32 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/AcaciaButton.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | // The contents of this file are subject to the Common Public Attribution 3 | // License Version 1.0. (the "License"); you may not use this file except in 4 | // compliance with the License. You may obtain a copy of the License at 5 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 6 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 7 | // and 15 have been added to cover use of software over a computer network and 8 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 9 | // been modified to be consistent with Exhibit B. 10 | // 11 | // Software distributed under the License is distributed on an "AS IS" basis, 12 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 13 | // the specific language governing rights and limitations under the License. 14 | // 15 | // The Original Code is MiNET. 16 | // 17 | // The Original Developer is the Initial Developer. The Initial Developer of 18 | // the Original Code is Niclas Olofsson. 19 | // 20 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 21 | // All Rights Reserved. 22 | #endregion 23 | namespace MiNET.Blocks 24 | { 25 | public partial class AcaciaButton: Button 26 | { 27 | public AcaciaButton() : base(395) 28 | { 29 | TickRate = 30; 30 | } 31 | 32 | } 33 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BlastFurnace.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BlastFurnace : BlastFurnaceBase 29 | { 30 | public BlastFurnace() : base(451) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/PurPurStairs.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class PurpurStairs : BlockStairs 29 | { 30 | public PurpurStairs() : base(203) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/ShulkerBox.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class ShulkerBox : UndyedShulkerBox 29 | { 30 | public ShulkerBox() : base(218) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemDiamond.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemDiamond : Item 29 | { 30 | public ItemDiamond() : base("minecraft:diamond", 264) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemSaddle.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemSaddle : Item 29 | { 30 | public ItemSaddle() : base("minecraft:saddle", 329) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/EndRod.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class EndRod : Block 29 | { 30 | public EndRod() : base(208) 31 | { 32 | LightLevel = 14; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemApple.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemApple : FoodItem 29 | { 30 | public ItemApple() : base("minecraft:apple", 260, 0, 4, 2.4) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemBread.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemBread : FoodItem 29 | { 30 | public ItemBread() : base("minecraft:bread", 297, 0, 5, 6.0) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemCompass.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemCompass : Item 29 | { 30 | public ItemCompass() : base("minecraft:compass", 345) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemGoldIngot.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemGoldIngot : Item 29 | { 30 | public ItemGoldIngot() : base("minecraft:gold_ingot", 266) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemIronIngot.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemIronIngot : Item 29 | { 30 | public ItemIronIngot() : base("minecraft:iron_ingot", 265) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemRedstone.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemRedstone : Item 29 | { 30 | public ItemRedstone() : base("minecraft:redstone", 331) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BirchButton.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BirchButton : Button 29 | { 30 | public BirchButton() : base(396) 31 | { 32 | TickRate = 30; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BirchFenceGate.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BirchFenceGate : FenceGateBlocks 29 | { 30 | public BirchFenceGate() : base(184) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/LitBlastFurnace.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class LitBlastFurnace : BlastFurnaceBase 29 | { 30 | public LitBlastFurnace() : base(469) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/PoweredRepeater.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class PoweredRepeater : RepeaterBase 29 | { 30 | public PoweredRepeater() : base(94) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/UnpoweredRepeater.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class UnpoweredRepeater : RepeaterBase 29 | { 30 | public UnpoweredRepeater() : base(93) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemAir.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemAir : Item 29 | { 30 | public ItemAir() : base("minecraft:air", 0, 0, 0) 31 | { 32 | UniqueId = 0; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemCookie.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemCookie : FoodItem 29 | { 30 | public ItemCookie() : base("minecraft:cookie", 357, 0, 2, 0.4) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemMelon.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemMelon : FoodItem 29 | { 30 | public ItemMelon() : base("minecraft:melon_slice", 360, 0, 2, 1.2) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Plugins/ICommandFilter.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Plugins 27 | { 28 | public interface ICommandFilter 29 | { 30 | void OnCommandExecuting(Player player); 31 | void OnCommandExecuted(); 32 | } 33 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/AcaciaFenceGate.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class AcaciaFenceGate : FenceGateBlocks 29 | { 30 | public AcaciaFenceGate() : base(187) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/DarkOakFenceGate.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class DarkOakFenceGate : FenceGateBlocks 29 | { 30 | public DarkOakFenceGate() : base(186) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/JungleButton.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class JungleButton : Button 29 | { 30 | public JungleButton() : base(398) 31 | { 32 | TickRate = 30; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/JungleFenceGate.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class JungleFenceGate : FenceGateBlocks 29 | { 30 | public JungleFenceGate() : base(185) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/SpruceButton.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class SpruceButton : Button 29 | { 30 | public SpruceButton() : base(399) 31 | { 32 | TickRate = 30; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/SpruceFenceGate.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class SpruceFenceGate : FenceGateBlocks 29 | { 30 | public SpruceFenceGate() : base(183) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/StoneButton.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class StoneButton : Button 29 | { 30 | public StoneButton() : base(77) 31 | { 32 | TickRate = 20; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemBeetroot.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemBeetroot : FoodItem 29 | { 30 | public ItemBeetroot() : base("minecraft:beetroot", 457, 0, 1, 1.2) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemGoldNugget.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemGoldNugget : Item 29 | { 30 | public ItemGoldNugget() : base("minecraft:gold_nugget", 371) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemIronNugget.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemIronNugget : Item 29 | { 30 | public ItemIronNugget() : base("minecraft:iron_nugget", 452) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/DarkOakButton.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class DarkOakButton : Button 29 | { 30 | public DarkOakButton() : base(397) 31 | { 32 | TickRate = 30; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/UnlitRedstoneTorch.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class UnlitRedstoneTorch : RedstoneTorchBase 29 | { 30 | public UnlitRedstoneTorch() : base(75) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/UnpoweredComparator.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class UnpoweredComparator : ComparatorBase 29 | { 30 | public UnpoweredComparator() : base(149) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/WoodenButton.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class WoodenButton : Button 29 | { 30 | public WoodenButton() : base(143) 31 | { 32 | TickRate = 30; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/RedSandstoneStairs.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | 27 | namespace MiNET.Blocks 28 | { 29 | public partial class RedSandstoneStairs : BlockStairs 30 | { 31 | public RedSandstoneStairs() : base(180) 32 | { 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/RepeaterBase.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class RepeaterBase : Block 29 | { 30 | public RepeaterBase(byte id) : base(id) 31 | { 32 | IsTransparent = true; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Stonecutter.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Stonecutter : Block 29 | { 30 | public Stonecutter() : base(245) 31 | { 32 | BlastResistance = 17.5f; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemCookedBeef.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemCookedBeef : FoodItem 29 | { 30 | public ItemCookedBeef() : base("minecraft:cooked_beef", 364, 0, 8, 12.8) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemPumpkinPie.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemPumpkinPie : FoodItem 29 | { 30 | public ItemPumpkinPie() : base("minecraft:pumpkin_pie", 400, 0, 8, 4.8) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BlueGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BlueGlazedTerracotta : GlazedTerracotta 29 | { 30 | public BlueGlazedTerracotta() : base(231) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/CyanGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class CyanGlazedTerracotta : GlazedTerracotta 29 | { 30 | public CyanGlazedTerracotta() : base(229) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/GrayGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class GrayGlazedTerracotta : GlazedTerracotta 29 | { 30 | public GrayGlazedTerracotta() : base(227) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/LimeGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class LimeGlazedTerracotta : GlazedTerracotta 29 | { 30 | public LimeGlazedTerracotta() : base(225) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/LitRedstoneOre.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class LitRedstoneOre : RedstoneOre 29 | { 30 | public LitRedstoneOre() : base(74) 31 | { 32 | LightLevel = 9; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Netherreactor.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Netherreactor : Block 29 | { 30 | public Netherreactor() : base(247) 31 | { 32 | BlastResistance = 30; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/PinkGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class PinkGlazedTerracotta : GlazedTerracotta 29 | { 30 | public PinkGlazedTerracotta() : base(226) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Pumpkin.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Pumpkin : Block 29 | { 30 | public Pumpkin() : base(86) 31 | { 32 | BlastResistance = 5; 33 | Hardness = 1; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/RedGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class RedGlazedTerracotta : GlazedTerracotta 29 | { 30 | public RedGlazedTerracotta() : base(234) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Sponge.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Sponge : Block 29 | { 30 | public Sponge() : base(19) 31 | { 32 | BlastResistance = 3; 33 | Hardness = 0.6f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemBakedPotato.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemBakedPotato : FoodItem 29 | { 30 | public ItemBakedPotato() : base("minecraft:baked_potato", 393, 0, 5, 7.2) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemTurtleHelmet.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemTurtleHelmet : ArmorHelmetBase 29 | { 30 | public ItemTurtleHelmet() : base("minecraft:turtle_helmet", 469) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BlackGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BlackGlazedTerracotta : GlazedTerracotta 29 | { 30 | public BlackGlazedTerracotta() : base(235) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BrownGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BrownGlazedTerracotta : GlazedTerracotta 29 | { 30 | public BrownGlazedTerracotta() : base(232) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/ComparatorBase.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class ComparatorBase : Block 29 | { 30 | public ComparatorBase(byte id) : base(id) 31 | { 32 | IsTransparent = true; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Concrete.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Concrete : Block 29 | { 30 | public Concrete() : base(236) 31 | { 32 | BlastResistance = 15; 33 | Hardness = 3; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/EndStone.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class EndStone : Block 29 | { 30 | public EndStone() : base(121) 31 | { 32 | BlastResistance = 45; 33 | Hardness = 3; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/GreenGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class GreenGlazedTerracotta : GlazedTerracotta 29 | { 30 | public GreenGlazedTerracotta() : base(233) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Jukebox.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Jukebox : Block 29 | { 30 | public Jukebox() : base(84) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 2f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/LitRedstoneLamp.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class LitRedstoneLamp : RedstoneLamp 29 | { 30 | public LitRedstoneLamp() : base(124) 31 | { 32 | LightLevel = 15; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/OrangeGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class OrangeGlazedTerracotta : GlazedTerracotta 29 | { 30 | public OrangeGlazedTerracotta() : base(221) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Piston.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Piston : Block 29 | { 30 | public Piston() : base(33) 31 | { 32 | BlastResistance = 2.5f; 33 | Hardness = 0.5f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Podzol.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Podzol : Block 29 | { 30 | public Podzol() : base(243) 31 | { 32 | BlastResistance = 2.5f; 33 | Hardness = 0.5f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/PurpleGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class PurpleGlazedTerracotta : GlazedTerracotta 29 | { 30 | public PurpleGlazedTerracotta() : base(219) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Sandstone.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Sandstone : Block 29 | { 30 | public Sandstone() : base(24) 31 | { 32 | BlastResistance = 4; 33 | Hardness = 0.8f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/SilverGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class SilverGlazedTerracotta : GlazedTerracotta 29 | { 30 | public SilverGlazedTerracotta() : base(228) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/WhiteGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class WhiteGlazedTerracotta : GlazedTerracotta 29 | { 30 | public WhiteGlazedTerracotta() : base(220) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/YellowGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class YellowGlazedTerracotta : GlazedTerracotta 29 | { 30 | public YellowGlazedTerracotta() : base(224) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemBlazeRod.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemBlazeRod : Item 29 | { 30 | public ItemBlazeRod() : base("minecraft:blaze_rod", 369) 31 | { 32 | MaxStackSize = 64; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemGoldenCarrot.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemGoldenCarrot : FoodItem 29 | { 30 | public ItemGoldenCarrot() : base("minecraft:golden_carrot", 396, 0, 6, 14.4) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BrickBlock.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BrickBlock : Block 29 | { 30 | public BrickBlock() : base(45) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 2; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/EndBricks.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class EndBricks : Block 29 | { 30 | public EndBricks() : base(206) 31 | { 32 | BlastResistance = 4; 33 | Hardness = 0.8f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/GoldBlock.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class GoldBlock : Block 29 | { 30 | public GoldBlock() : base(41) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 3; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/IronBlock.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class IronBlock : Block 29 | { 30 | public IronBlock() : base(42) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 5; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/LapisBlock.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class LapisBlock : Block 29 | { 30 | public LapisBlock() : base(22) 31 | { 32 | BlastResistance = 15; 33 | Hardness = 3; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/MagentaGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class MagentaGlazedTerracotta : GlazedTerracotta 29 | { 30 | public MagentaGlazedTerracotta() : base(222) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Obsidian.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Obsidian : Block 29 | { 30 | public Obsidian() : base(49) 31 | { 32 | BlastResistance = 6000; 33 | Hardness = 50; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/SoulSand.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class SoulSand : Block 29 | { 30 | public SoulSand() : base(88) 31 | { 32 | BlastResistance = 2.5f; 33 | Hardness = 0.5f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemCoal.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemCoal : Item 29 | { 30 | public ItemCoal() : base("minecraft:coal", 263) 31 | { 32 | MaxStackSize = 64; 33 | FuelEfficiency = 80; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemCookedChicken.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemCookedChicken : FoodItem 29 | { 30 | public ItemCookedChicken() : base("minecraft:cooked_chicken", 366, 0, 6, 7.2) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemMuttonCooked.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemMuttonCooked : FoodItem 29 | { 30 | public ItemMuttonCooked() : base("minecraft:cooked_mutton", 424, 0, 6, 9.6) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/DiamondBlock.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class DiamondBlock : Block 29 | { 30 | public DiamondBlock() : base(57) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 5; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Dropper.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | 27 | namespace MiNET.Blocks 28 | { 29 | public partial class Dropper : Block 30 | { 31 | public Dropper() : base(125) 32 | { 33 | BlastResistance = 17.5f; 34 | Hardness = 3.5f; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/FrostedIce.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class FrostedIce : Block 29 | { 30 | public FrostedIce() : base(207) 31 | { 32 | BlastResistance = 2.5f; 33 | Hardness = 0.5f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/LightBlueGlazedTerracotta.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class LightBlueGlazedTerracotta : GlazedTerracotta 29 | { 30 | public LightBlueGlazedTerracotta() : base(223) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/NetherBrick.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class NetherBrick : Block 29 | { 30 | public NetherBrick() : base(112) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 2; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Netherrack.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Netherrack : Block 29 | { 30 | public Netherrack() : base(87) 31 | { 32 | BlastResistance = 2; 33 | Hardness = 0.4f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/PackedIce.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class PackedIce : Block 29 | { 30 | public PackedIce() : base(174) 31 | { 32 | BlastResistance = 2.5f; 33 | Hardness = 0.5f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Prismarine.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Prismarine : Block 29 | { 30 | public Prismarine() : base(168) 31 | { 32 | Hardness = 1.5f; 33 | BlastResistance = 30; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/QuartzBlock.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class QuartzBlock : Block 29 | { 30 | public QuartzBlock() : base(155) 31 | { 32 | BlastResistance = 4; 33 | Hardness = 0.8f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/RedMushroom.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class RedMushroom : Block 29 | { 30 | public RedMushroom() : base(40) 31 | { 32 | IsSolid = false; 33 | IsTransparent = true; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/RedSandstone.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class RedSandstone : Block 29 | { 30 | public RedSandstone() : base(179) 31 | { 32 | BlastResistance = 4; 33 | Hardness = 0.8f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/StickyPiston.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class StickyPiston : Block 29 | { 30 | public StickyPiston() : base(29) 31 | { 32 | BlastResistance = 2.5f; 33 | Hardness = 0.5f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemBlazePowder.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemBlazePowder : Item 29 | { 30 | public ItemBlazePowder() : base("minecraft:blaze_powder", 377) 31 | { 32 | MaxStackSize = 64; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemCookedPorkchop.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemCookedPorkchop : FoodItem 29 | { 30 | public ItemCookedPorkchop() : base("minecraft:cooked_porkchop", 320, 0, 8, 12.8) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Items/ItemIronAxe.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Items 27 | { 28 | public class ItemIronAxe : ItemAxe 29 | { 30 | public ItemIronAxe() : base("minecraft:iron_axe", 258) 31 | { 32 | ItemMaterial = ItemMaterial.Iron; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/BrickStairs.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class BrickStairs : BlockStairs 29 | { 30 | public BrickStairs() : base(108) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 2; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/EmeraldBlock.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class EmeraldBlock : Block 29 | { 30 | public EmeraldBlock() : base(133) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 5; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/FlowingWater.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class FlowingWater : Flowing 29 | { 30 | public FlowingWater() : base(8) 31 | { 32 | BlastResistance = 500; 33 | Hardness = 100; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/HardenedClay.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class HardenedClay : Block 29 | { 30 | public HardenedClay() : base(172) 31 | { 32 | BlastResistance = 30; 33 | Hardness = 1.25f; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/Log2.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | namespace MiNET.Blocks 27 | { 28 | public partial class Log2 : Block 29 | { 30 | public Log2() : base(162) 31 | { 32 | BlastResistance = 10; 33 | Hardness = 2; 34 | IsFlammable = true; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /src/MiNET/MiNET/Blocks/PoweredComparator.cs: -------------------------------------------------------------------------------- 1 | #region LICENSE 2 | 3 | // The contents of this file are subject to the Common Public Attribution 4 | // License Version 1.0. (the "License"); you may not use this file except in 5 | // compliance with the License. You may obtain a copy of the License at 6 | // https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE. 7 | // The License is based on the Mozilla Public License Version 1.1, but Sections 14 8 | // and 15 have been added to cover use of software over a computer network and 9 | // provide for limited attribution for the Original Developer. In addition, Exhibit A has 10 | // been modified to be consistent with Exhibit B. 11 | // 12 | // Software distributed under the License is distributed on an "AS IS" basis, 13 | // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 14 | // the specific language governing rights and limitations under the License. 15 | // 16 | // The Original Code is MiNET. 17 | // 18 | // The Original Developer is the Initial Developer. The Initial Developer of 19 | // the Original Code is Niclas Olofsson. 20 | // 21 | // All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2018 Niclas Olofsson. 22 | // All Rights Reserved. 23 | 24 | #endregion 25 | 26 | 27 | namespace MiNET.Blocks 28 | { 29 | public partial class PoweredComparator : ComparatorBase 30 | { 31 | public PoweredComparator() : base(150) 32 | { 33 | LightLevel = 7; 34 | } 35 | } 36 | } --------------------------------------------------------------------------------