mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
15 lines
No EOL
340 B
PHP
Executable file
15 lines
No EOL
340 B
PHP
Executable file
<?php
|
|
|
|
class ShearsItem extends ItemTool{
|
|
public function __construct($meta = 0, $count = 1){
|
|
parent::__construct(SHEARS, $meta, $count, "Shears");
|
|
}
|
|
|
|
public function useOn($object, $force = false){
|
|
if(($object instanceof Sheep) and $this->id === SHEARS){
|
|
$this->meta++;
|
|
return true;
|
|
}
|
|
parent::useOn($object, $force);
|
|
}
|
|
} |