1.16.3 Update

Also included a bunch of warning cleanups.
This commit is contained in:
LexManos committed 2020-09-10 12:01:45 -07:00
1 parent 2353cd982a
commit c75eb9e7cf
73 files changed
+73 -381

No files matched your search

@@ -36,17 +36,17 @@ import net.minecraftforge.eventbus.api.Event.HasResult;
* This event does not have a result. {@link HasResult}<br>
*<br>
* This event is fired on the {@link MinecraftForge#EVENT_BUS}.
*
*
*/
@net.minecraftforge.eventbus.api.Cancelable
@Cancelable
public class EntityMountEvent extends EntityEvent
{
private final Entity entityMounting;
private final Entity entityBeingMounted;
private final World worldObj;
private final boolean isMounting;
public EntityMountEvent(Entity entityMounting, Entity entityBeingMounted, World entityWorld, boolean isMounting)
@@ -57,12 +57,12 @@ public class EntityMountEvent extends EntityEvent
this.worldObj = entityWorld;
this.isMounting = isMounting;
}
public boolean isMounting()
{
return isMounting;
}
public boolean isDismounting()
{
return !isMounting;
@@ -32,7 +32,7 @@ import net.minecraftforge.eventbus.api.Cancelable;
* This event is {@link net.minecraftforge.eventbus.api.Cancelable}. If canceled, taming the animal will fail.
* This event is fired on the {@link MinecraftForge#EVENT_BUS}.
*/
@net.minecraftforge.eventbus.api.Cancelable
@Cancelable
public class AnimalTameEvent extends LivingEvent
{
private final AnimalEntity animal;
@@ -28,8 +28,8 @@ import net.minecraftforge.eventbus.api.Cancelable;
* the amount of experience points dropped or completely prevent dropping of experience
* by canceling the event.
*/
@net.minecraftforge.eventbus.api.Cancelable
public class LivingExperienceDropEvent extends LivingEvent
@Cancelable
public class LivingExperienceDropEvent extends LivingEvent
{
private final PlayerEntity attackingPlayer;
private final int originalExperiencePoints;
@@ -40,7 +40,7 @@ import net.minecraft.entity.LivingEntity;
* <br>
* This event is fired on the {@link MinecraftForge#EVENT_BUS}.
**/
@net.minecraftforge.eventbus.api.Cancelable
@Cancelable
public class LivingFallEvent extends LivingEvent
{
private float distance;
@@ -39,7 +39,7 @@ import net.minecraft.entity.LivingEntity;
* <br>
* This event is fired on the {@link MinecraftForge#EVENT_BUS}.
**/
@net.minecraftforge.eventbus.api.Cancelable
@Cancelable
public class LivingHealEvent extends LivingEvent
{
private float amount;
@@ -22,7 +22,6 @@ package net.minecraftforge.event.entity.player;
import net.minecraft.advancements.Advancement;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.Cancelable;
/**
* This event is fired when a player gets an advancement.
@@ -38,7 +38,7 @@ import javax.annotation.Nullable;
* ItemStack to your inventory and reducing the stack size to process.
* setResult(ALLOW) is the same as the old setHandled();
*/
@net.minecraftforge.eventbus.api.Cancelable
@Cancelable
@Event.HasResult
public class FillBucketEvent extends PlayerEvent
{
@@ -35,7 +35,7 @@ import java.util.List;
* Canceling the event will cause the player to receive no items at all.
* The hook will still take the damage specified
*/
@net.minecraftforge.eventbus.api.Cancelable
@Cancelable
public class ItemFishedEvent extends PlayerEvent
{
private final NonNullList<ItemStack> stacks = NonNullList.create();
@@ -23,7 +23,6 @@ import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerEntity.SleepResult;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.Cancelable;
import java.util.Optional;
@@ -35,8 +34,6 @@ import java.util.Optional;
* <br>
* {@link #result} contains whether the player is able to sleep. <br>
* <br>
* This event is not {@link net.minecraftforge.eventbus.api.Cancelable}.
* <br>
* This event does not have a result. {@link HasResult}
* <br>
* This event is fired on the {@link MinecraftForge#EVENT_BUS}.