Enum Class AllPotatoProjectileEntityHitActions.CureZombieVillager
java.lang.Object
java.lang.Enum<AllPotatoProjectileEntityHitActions.CureZombieVillager>
com.simibubi.create.content.equipment.potatoCannon.AllPotatoProjectileEntityHitActions.CureZombieVillager
- All Implemented Interfaces:
PotatoProjectileEntityHitAction,Serializable,Comparable<AllPotatoProjectileEntityHitActions.CureZombieVillager>,Constable
- Enclosing class:
AllPotatoProjectileEntityHitActions
public static enum AllPotatoProjectileEntityHitActions.CureZombieVillager
extends Enum<AllPotatoProjectileEntityHitActions.CureZombieVillager>
implements PotatoProjectileEntityHitAction
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface com.simibubi.create.api.equipment.potatoCannon.PotatoProjectileEntityHitAction
PotatoProjectileEntityHitAction.Type -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<AllPotatoProjectileEntityHitActions.CureZombieVillager> -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends PotatoProjectileEntityHitAction> codec()booleanexecute(net.minecraft.world.item.ItemStack projectile, net.minecraft.world.phys.EntityHitResult ray, PotatoProjectileEntityHitAction.Type type) Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
CODEC
public static final com.mojang.serialization.MapCodec<AllPotatoProjectileEntityHitActions.CureZombieVillager> CODEC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
execute
public boolean execute(net.minecraft.world.item.ItemStack projectile, net.minecraft.world.phys.EntityHitResult ray, PotatoProjectileEntityHitAction.Type type) - Specified by:
executein interfacePotatoProjectileEntityHitAction- Returns:
- true if the hit should be canceled if the type is
PRE_HIT, true if this shouldn't recover the projectile if the type isON_HIT
-
codec
- Specified by:
codecin interfacePotatoProjectileEntityHitAction
-