Package com.petrolpark.data.reward
Class GrantShopXPReward
java.lang.Object
com.petrolpark.data.reward.GrantShopXPReward
- All Implemented Interfaces:
IReward,net.minecraft.world.level.storage.loot.LootContextUser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.world.level.storage.loot.providers.number.NumberProviderfinal net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionGrantShopXPReward(net.minecraft.resources.ResourceLocation shopRL, net.minecraft.world.level.storage.loot.providers.number.NumberProvider amount) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentgetName()Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>>getType()voidrender(net.minecraft.client.gui.GuiGraphics graphics) voidreward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
shopRL
public final net.minecraft.resources.ResourceLocation shopRL -
amount
public final net.minecraft.world.level.storage.loot.providers.number.NumberProvider amount
-
-
Constructor Details
-
GrantShopXPReward
public GrantShopXPReward(net.minecraft.resources.ResourceLocation shopRL, net.minecraft.world.level.storage.loot.providers.number.NumberProvider amount)
-
-
Method Details
-
reward
public void reward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier) -
render
public void render(net.minecraft.client.gui.GuiGraphics graphics) -
getName
public net.minecraft.network.chat.Component getName() -
getType
-
getReferencedContextParams
public Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>> getReferencedContextParams()- Specified by:
getReferencedContextParamsin interfacenet.minecraft.world.level.storage.loot.LootContextUser
-