mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 05:02:30 +00:00
More work, pretty close to being back to 1.13 level
This commit is contained in:
1 parent
828d952a86
commit
bd5b395ee8
51 files changed
+336
-235
No files matched your search
@@ -13,6 +13,7 @@ package vazkii.botania.common.entity;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.nbt.CompoundNBT;
|
||||
import net.minecraft.network.IPacket;
|
||||
import net.minecraft.util.SoundEvents;
|
||||
import net.minecraft.item.DyeColor;
|
||||
import net.minecraft.nbt.CompoundNBT;
|
||||
@@ -21,6 +22,7 @@ import net.minecraft.network.datasync.DataSerializers;
|
||||
import net.minecraft.network.datasync.EntityDataManager;
|
||||
import net.minecraft.util.SoundEvents;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.network.NetworkHooks;
|
||||
import net.minecraftforge.registries.ObjectHolder;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.lib.LibMisc;
|
||||
@@ -89,6 +91,12 @@ public class EntitySignalFlare extends Entity {
|
||||
nbttagcompound.putInt(FIRED_Y_TAG, getFiredAt());
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public IPacket<?> createSpawnPacket() {
|
||||
return NetworkHooks.getEntitySpawningPacket(this);
|
||||
}
|
||||
|
||||
public void setColor(int color) {
|
||||
dataManager.set(COLOR, color);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user