Changes
From Forge Community Wiki
42 bytes added
, 17:05, 20 April 2021
mLine 44: |
Line 44: |
| Example usage: | | Example usage: |
| <syntaxhighlight lang="java"> | | <syntaxhighlight lang="java"> |
− | public void onEntityPlace(final BlockEvent.BreakEvent event) | + | public void onEntityPlace(final BlockEvent.EntityPlaceEvent event) |
| { | | { |
| Entity entity = event.getEntity(); | | Entity entity = event.getEntity(); |
Line 79: |
Line 79: |
| Example usage: | | Example usage: |
| <syntaxhighlight lang="java"> | | <syntaxhighlight lang="java"> |
− | public void onNeighborNotify(final BlockEvent.BreakEvent event) | + | public void onNeighborNotify(final BlockEvent.NeighborNotifyEvent event) |
| { | | { |
| if (world.isClientSide()) return; | | if (world.isClientSide()) return; |
Line 104: |
Line 104: |
| Example usage: | | Example usage: |
| <syntaxhighlight lang="java"> | | <syntaxhighlight lang="java"> |
− | public void onNeighborNotify(final BlockEvent.BreakEvent event) | + | public void onNeighborNotify(final BlockEvent.CreateFluidSourceEvent event) |
| { | | { |
| if (!world.isClientSide() && event.getPos().getY() > 100) | | if (!world.isClientSide() && event.getPos().getY() > 100) |
Line 126: |
Line 126: |
| Example usage: | | Example usage: |
| <syntaxhighlight lang="java"> | | <syntaxhighlight lang="java"> |
− | public void onBreak(final BlockEvent.BreakEvent event) | + | public void onFluidPlace(final BlockEvent.FluidPlaceBlockEvent event) |
| { | | { |
| if (world.isClientSide()) return; | | if (world.isClientSide()) return; |