Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

bukkit detect block that nowbal hit

((CraftPlayer)player).getHandle().netServerHandler.sendPacket(new Packet55BlockBreakAnimation(params));
Comment

bukkit detect block that nowbal hit

public void onProjectileHit(ProjectileHitEvent event) {
        Entity entity = event.getEntity();
        if (entity instanceof Snowball) {
            Location loc = entity.getLocation();
            Vector vec = entity.getVelocity();
            Location loc2 = new Location(loc.getWorld(), loc.getX()+vec.getX(), loc.getY()+vec.getY(), loc.getZ()+vec.getZ());
            System.out.println(loc2.getBlock().getTypeId());
            if (loc2.getBlock().getTypeId()==Block.SNOW_BLOCK.id)
            {
...
Comment

PREVIOUS NEXT
Code Example
Java :: fab icon color 
Java :: what is this code (long millis=System.currentTimeMillis(); java.sql.Date date=new java.sql.Date(millis); 
Java :: how to load template file from resource folder in spring boot project 
Java :: java manajro 
Java :: check whether an entry in hashmap is deleted in java 
Java :: circular roation continous in android 
Java :: spring data rest relationships 
Java :: how to configure multiple database in spring boot based for uat and dev environment 
Java :: setsystemuivisibility example 
Java :: forge close gui java 
Java :: how to generate a random number in libgdx 
Java :: fill two dimension array java 
Java :: add days to a date java 
Java :: rgb code from java color 
Java :: recycler view event being raised multiple times 
Java :: recursion java 
Java :: java define interface 
Java :: is java pass by value or pass by reference 
Java :: java.lang.stringindexoutofboundsexception: string index out of range: 10 
Java :: sorting algorithms in java 
Java :: string formatting java 
Java :: how to be good at javasctript 
Java :: how to create a derived class in Java 
Java :: public class extends implements java 
Java :: java dato numero big starkoverflow 
Sql :: conda install sqlalchemy 
Sql :: service postgres status 
Sql :: wait delay in sql server 
Sql :: restart the psql server windows 
Sql :: Add 2 hours to current time in MySQL 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =