diff --git a/TEMPLATE_LICENSE.txt b/LICENSE.txt similarity index 89% rename from TEMPLATE_LICENSE.txt rename to LICENSE.txt index b64bc64..9d9a4f9 100644 --- a/TEMPLATE_LICENSE.txt +++ b/LICENSE.txt @@ -1,9 +1,6 @@ MIT License -Copyright (c) 2023 NeoForged project - -This license applies to the template files as supplied by github.com/NeoForged/MDK - +Copyright (c) 2023 RealYusufIsmail Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestBlock.java b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestBlock.java new file mode 100644 index 0000000..eeb1935 --- /dev/null +++ b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestBlock.java @@ -0,0 +1,40 @@ +package io.github.realyusufismail.tutorialmod.blocks.chest; + +import com.mojang.serialization.MapCodec; +import net.minecraft.core.BlockPos; +import net.minecraft.world.level.Level; +import net.minecraft.world.level.block.AbstractChestBlock; +import net.minecraft.world.level.block.DoubleBlockCombiner; +import net.minecraft.world.level.block.SimpleWaterloggedBlock; +import net.minecraft.world.level.block.entity.BlockEntity; +import net.minecraft.world.level.block.entity.BlockEntityType; +import net.minecraft.world.level.block.entity.ChestBlockEntity; +import net.minecraft.world.level.block.state.BlockState; +import org.jetbrains.annotations.Nullable; + +import java.util.function.Supplier; + +/** + * @see net.minecraft.world.level.block.ChestBlock + */ +public class ExampleChestBlock extends AbstractChestBlock implements SimpleWaterloggedBlock { + protected ExampleChestBlock(Properties pProperties, Supplier> pBlockEntityType) { + super(pProperties, pBlockEntityType); + } + + @Override + protected MapCodec> codec() { + return null; + } + + @Override + public DoubleBlockCombiner.NeighborCombineResult combine(BlockState pState, Level pLevel, BlockPos pPos, boolean pOverride) { + return null; + } + + @Nullable + @Override + public BlockEntity newBlockEntity(BlockPos pPos, BlockState pState) { + return null; + } +} diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestBlockEntity.java b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestBlockEntity.java new file mode 100644 index 0000000..337ebfc --- /dev/null +++ b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestBlockEntity.java @@ -0,0 +1,51 @@ +package io.github.realyusufismail.tutorialmod.blocks.chest; + +import net.minecraft.core.BlockPos; +import net.minecraft.core.NonNullList; +import net.minecraft.network.chat.Component; +import net.minecraft.world.entity.player.Inventory; +import net.minecraft.world.inventory.AbstractContainerMenu; +import net.minecraft.world.item.ItemStack; +import net.minecraft.world.level.block.entity.BlockEntityType; +import net.minecraft.world.level.block.entity.LidBlockEntity; +import net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity; +import net.minecraft.world.level.block.state.BlockState; + +/** + * @see net.minecraft.world.level.block.entity.ChestBlockEntity + */ +public class ExampleChestBlockEntity extends RandomizableContainerBlockEntity implements LidBlockEntity { + protected ExampleChestBlockEntity(BlockEntityType pType, BlockPos pPos, BlockState pBlockState) { + super(pType, pPos, pBlockState); + } + + @Override + protected Component getDefaultName() { + return null; + } + + @Override + protected NonNullList getItems() { + return null; + } + + @Override + protected void setItems(NonNullList pItems) { + + } + + @Override + protected AbstractContainerMenu createMenu(int pContainerId, Inventory pInventory) { + return null; + } + + @Override + public int getContainerSize() { + return 0; + } + + @Override + public float getOpenNess(float pPartialTicks) { + return 0; + } +} diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestMenu.java b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestMenu.java new file mode 100644 index 0000000..f289cdf --- /dev/null +++ b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/chest/ExampleChestMenu.java @@ -0,0 +1,7 @@ +package io.github.realyusufismail.tutorialmod.blocks.chest; + +/** + * @see net.minecraft.world.inventory.ChestMenu + */ +public class ExampleChestMenu { +} diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/blocks/crafting/ExampleCraftingBlock.java b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/crafting/ExampleCraftingBlock.java new file mode 100644 index 0000000..930da93 --- /dev/null +++ b/src/main/java/io/github/realyusufismail/tutorialmod/blocks/crafting/ExampleCraftingBlock.java @@ -0,0 +1,7 @@ +package io.github.realyusufismail.tutorialmod.blocks.crafting; + +/** + * @see net.minecraft.world.level.block.CrafterBlock + */ +public class ExampleCraftingBlock { +}