Class ActionTradeBase
java.lang.Object
com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
com.blamejared.crafttweaker.api.action.villager.ActionTradeBase
- All Implemented Interfaces:
IAction,IRuntimeAction,IUndoableAction
- Direct Known Subclasses:
ActionAddTrade,ActionAddWanderingTrade,ActionRemoveTrade,ActionRemoveWanderingTrade
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected net.minecraft.world.entity.npc.VillagerProfession -
Constructor Summary
ConstructorsConstructorDescriptionActionTradeBase(int level) ActionTradeBase(net.minecraft.world.entity.npc.VillagerProfession profession, int level) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidintgetLevel()net.minecraft.world.entity.npc.VillagerProfessionprotected List<net.minecraft.world.entity.npc.VillagerTrades.ItemListing> protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.entity.npc.VillagerTrades.ItemListing[]> protected voidsetTradeList(List<net.minecraft.world.entity.npc.VillagerTrades.ItemListing> tradeList) abstract voidMethods inherited from class com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
systemNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blamejared.crafttweaker.api.action.base.IAction
apply, assertLoader, describe, getDeclaredScriptPosition, logger, shouldApplyOn, systemName, validateMethods inherited from interface com.blamejared.crafttweaker.api.action.base.IUndoableAction
describeUndo, undo
-
Field Details
-
profession
protected net.minecraft.world.entity.npc.VillagerProfession profession -
level
protected final int level
-
-
Constructor Details
-
ActionTradeBase
public ActionTradeBase(int level) -
ActionTradeBase
public ActionTradeBase(net.minecraft.world.entity.npc.VillagerProfession profession, int level)
-
-
Method Details
-
apply
public abstract void apply(List<net.minecraft.world.entity.npc.VillagerTrades.ItemListing> tradeList) -
undo
public abstract void undo(List<net.minecraft.world.entity.npc.VillagerTrades.ItemListing> tradeList) -
getTrades
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.entity.npc.VillagerTrades.ItemListing[]> getTrades() -
getTradeList
-
setTradeList
protected void setTradeList(List<net.minecraft.world.entity.npc.VillagerTrades.ItemListing> tradeList) -
getLevel
public int getLevel() -
getProfession
public net.minecraft.world.entity.npc.VillagerProfession getProfession()
-