Class UndertakerTotemTrigger
java.lang.Object
com.minecolonies.api.advancements.AbstractCriterionTrigger<CriterionListeners<UndertakerTotemCriterionInstance>,UndertakerTotemCriterionInstance>
com.minecolonies.api.advancements.undertaker_totem.UndertakerTotemTrigger
- All Implemented Interfaces:
net.minecraft.advancements.CriterionTrigger<UndertakerTotemCriterionInstance>
public class UndertakerTotemTrigger
extends AbstractCriterionTrigger<CriterionListeners<UndertakerTotemCriterionInstance>,UndertakerTotemCriterionInstance>
A Trigger that is triggered when the undertaker recieves a totem of undying
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
net.minecraft.advancements.CriterionTrigger.Listener<T extends net.minecraft.advancements.CriterionTriggerInstance> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull UndertakerTotemCriterionInstancecreateInstance(@NotNull com.google.gson.JsonObject object, @NotNull net.minecraft.advancements.critereon.DeserializationContext conditions) voidtrigger(net.minecraft.server.level.ServerPlayer player) Triggers the listener checks if there are any listening inMethods inherited from class com.minecolonies.api.advancements.AbstractCriterionTrigger
addPlayerListener, getId, getListeners, removePlayerListener, removePlayerListeners
-
Constructor Details
-
UndertakerTotemTrigger
public UndertakerTotemTrigger()
-
-
Method Details
-
trigger
public void trigger(net.minecraft.server.level.ServerPlayer player) Triggers the listener checks if there are any listening in- Parameters:
player- the player the check regards
-
createInstance
@NotNull public @NotNull UndertakerTotemCriterionInstance createInstance(@NotNull @NotNull com.google.gson.JsonObject object, @NotNull @NotNull net.minecraft.advancements.critereon.DeserializationContext conditions)
-