Package org.bukkit.event.entity

Examples of org.bukkit.event.entity.EntityCreatePortalEvent


                BlockState state = center.getRelative(i, 0, j).getState();
                state.setType(Material.ENDER_PORTAL);
                blocks.add(state);
            }
        }
        if (!EventFactory.callEvent(new EntityCreatePortalEvent(player, blocks, PortalType.ENDER)).isCancelled()) {
            for (BlockState state : blocks) {
                state.update(true);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.bukkit.event.entity.EntityCreatePortalEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.