base mod created

This commit is contained in:
Mohammad-Ali Minaie
2018-10-08 09:07:47 -04:00
parent 0a7700c356
commit b86dedad2f
7848 changed files with 584664 additions and 1 deletions

View File

@@ -0,0 +1,43 @@
package net.minecraft.entity;
import javax.annotation.Nullable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.village.MerchantRecipe;
import net.minecraft.village.MerchantRecipeList;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public interface IMerchant
{
void setCustomer(@Nullable EntityPlayer player);
@Nullable
EntityPlayer getCustomer();
@Nullable
MerchantRecipeList getRecipes(EntityPlayer player);
@SideOnly(Side.CLIENT)
void setRecipes(@Nullable MerchantRecipeList recipeList);
void useRecipe(MerchantRecipe recipe);
/**
* Notifies the merchant of a possible merchantrecipe being fulfilled or not. Usually, this is just a sound byte
* being played depending if the suggested itemstack is not null.
*/
void verifySellingItem(ItemStack stack);
/**
* Get the formatted ChatComponent that will be used for the sender's username in chat
*/
ITextComponent getDisplayName();
World getWorld();
BlockPos getPos();
}