mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 21:20:12 +00:00
Update to 1.15
Due to the massive rendering changes, certain features, such as emissive item rendering and the forge block rendering/lighting pipeline are currently disabled. Co-authored-by: David Quintana <[email protected]> Co-authored-by: tterrag <[email protected]> Co-authored-by: Unnoen <[email protected]>
This commit is contained in:
1 parent
9e5ecaaf75
commit
1933d05e36
565 files changed
+11114
-13142
No files matched your search
@@ -173,7 +173,7 @@ public class LivingSpawnEvent extends LivingEvent
|
||||
{
|
||||
public AllowDespawn(MobEntity entity)
|
||||
{
|
||||
super(entity, entity.world, entity.posX, entity.posY, entity.posZ);
|
||||
super(entity, entity.world, entity.func_226277_ct_(), entity.func_226278_cu_(), entity.func_226281_cx_());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
/*
|
||||
* Minecraft Forge
|
||||
* Copyright (c) 2016-2019.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
package net.minecraftforge.event.entity.player;
|
||||
|
||||
import net.minecraft.entity.item.ExperienceOrbEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraftforge.eventbus.api.Cancelable;
|
||||
|
||||
/**
|
||||
* Use {@link PlayerXpEvent.PickupXp}
|
||||
*/
|
||||
@Cancelable
|
||||
@Deprecated
|
||||
public class PlayerPickupXpEvent extends PlayerXpEvent.PickupXp
|
||||
{
|
||||
|
||||
public PlayerPickupXpEvent(PlayerEntity player, ExperienceOrbEntity orb)
|
||||
{
|
||||
super(player, orb);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -32,14 +32,11 @@ public class PlayerWakeUpEvent extends PlayerEvent
|
||||
|
||||
private final boolean updateWorld;
|
||||
|
||||
private final boolean setSpawn;
|
||||
|
||||
public PlayerWakeUpEvent(PlayerEntity player, boolean wakeImmediately, boolean updateWorld, boolean setSpawn)
|
||||
public PlayerWakeUpEvent(PlayerEntity player, boolean wakeImmediately, boolean updateWorld)
|
||||
{
|
||||
super(player);
|
||||
this.wakeImmediately = wakeImmediately;
|
||||
this.updateWorld = updateWorld;
|
||||
this.setSpawn = setSpawn;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -53,10 +50,4 @@ public class PlayerWakeUpEvent extends PlayerEvent
|
||||
* This will only be false if the server is considered 'up to date' already, because, for example, it initiated the call.
|
||||
*/
|
||||
public boolean updateWorld() { return updateWorld; }
|
||||
|
||||
/**
|
||||
* Indicates if the player's sleep was considered successful.
|
||||
* In vanilla, this is used to determine if the spawn chunk is to be set to the bed's position.
|
||||
*/
|
||||
public boolean shouldSetSpawn() { return setSpawn; }
|
||||
}
|
||||
Reference in new issue
Block a user