Example usage for net.minecraftforge.event.world BlockEvent.CreateFluidSourceEvent getState

List of usage examples for net.minecraftforge.event.world BlockEvent.CreateFluidSourceEvent getState

Introduction

In this page you can find the example usage for net.minecraftforge.event.world BlockEvent.CreateFluidSourceEvent getState.

Prototype

public BlockState getState() 

Source Link

Usage

From source file:info.tritusk.finitewater.FiniteWater.java

License:Open Source License

@SubscribeEvent(priority = EventPriority.LOWEST)
public void finiteWater(BlockEvent.CreateFluidSourceEvent event) {
    if (event.getState().getBlock() == Blocks.FLOWING_WATER) {
        event.setResult(Event.Result.DENY);
    }/*from ww  w  . ja v a  2 s  . co  m*/
}