Grrr. Stupid error. Sorry lex: I fixed it.

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2019-08-05 08:56:42 -04:00
parent 81ec8b99ac
commit 4323c6d845
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
2 changed files with 11 additions and 1 deletions

View File

@ -50,7 +50,7 @@ import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.fluids.UniversalBucket;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.gameevent.PlayerEvent;
import net.minecraftforge.event.entity.player.PlayerEvent;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;

View File

@ -53,11 +53,21 @@ public class PlayerEvent extends LivingEvent
entityPlayer = player;
}
/**
* Use {@link #getPlayer()}
*
* @return Player
*/
@Deprecated
public PlayerEntity getEntityPlayer()
{
return entityPlayer;
}
/**
* @return Player
*/
public PlayerEntity getPlayer() { return entityPlayer; }
/**
* HarvestCheck is fired when a player attempts to harvest a block.<br>
* This event is fired whenever a player attempts to harvest a block in