public abstract class PixelmonInteraction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
counter
The amount of ticks before incrementing the Pokémon's stored interactions.
|
int |
maxInteractions
The maximum number of interactions that the Pokémon can store.
|
Constructor and Description |
---|
PixelmonInteraction(int maxInteractions)
Initializes an interaction.
|
Modifier and Type | Method and Description |
---|---|
static PixelmonInteraction |
getInteraction(Species species)
Gets the interaction for a Pokémon.
|
boolean |
processInteract(AbstractBaseEntity pixelmon,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.item.ItemStack itemstack)
Handles a player interacting with the Pokémon.
|
void |
resetCounter(AbstractBaseEntity pixelmon)
Ticks the timer for incrementing the Pokémon's interactions.
|
public int maxInteractions
public int counter
public PixelmonInteraction(int maxInteractions)
maxInteractions
- The maximum number of intetractions that the Pokémon can store.public boolean processInteract(AbstractBaseEntity pixelmon, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack itemstack)
player
- The player interacting with the Pokémon.public void resetCounter(AbstractBaseEntity pixelmon)
@Nullable public static PixelmonInteraction getInteraction(Species species)
species
- The Pokémon to get an interaction for.