mirror of
				https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
				synced 2025-11-01 09:09:36 +00:00 
			
		
		
		
	Implemented Creeper.is/setPowered
This commit is contained in:
		
							parent
							
								
									7c455380a9
								
							
						
					
					
						commit
						1a68a2aafe
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
					@ -15,4 +15,16 @@ public class CraftCreeper extends CraftMonster implements Creeper {
 | 
				
			||||||
        return "CraftCreeper";
 | 
					        return "CraftCreeper";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public boolean isPowered() {
 | 
				
			||||||
 | 
					        return getHandle().W().a(17) == 1;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public void setPowered(boolean powered) {
 | 
				
			||||||
 | 
					        if (powered) {
 | 
				
			||||||
 | 
					            getHandle().W().a(17, 1);
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            getHandle().W().a(17, 0);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue