All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.block.EntityBlockFormEvent Maven / Gradle / Ivy

package org.bukkit.event.block;

import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
import org.bukkit.entity.Entity;

/**
 * Called when a block is formed by entities.
 * 

* Examples: *

    *
  • Snow formed by a {@link org.bukkit.entity.Snowman}. *
*/ public class EntityBlockFormEvent extends BlockFormEvent { private final Entity entity; public EntityBlockFormEvent(final Entity entity, final Block block, final BlockState blockstate) { super(block, blockstate); this.entity = entity; } /** * Get the entity that formed the block. * * @return Entity involved in event */ public Entity getEntity() { return entity; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy