49 lines
No EOL
1.4 KiB
Java
49 lines
No EOL
1.4 KiB
Java
package com.atsuishio.superbwarfare.entity;
|
|
|
|
import net.minecraft.nbt.CompoundTag;
|
|
import net.minecraft.network.syncher.SynchedEntityData;
|
|
import net.minecraft.world.entity.Entity;
|
|
import net.minecraft.world.entity.EntityType;
|
|
import net.minecraft.world.level.Level;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import software.bernie.geckolib.animatable.GeoEntity;
|
|
import software.bernie.geckolib.animatable.instance.AnimatableInstanceCache;
|
|
import software.bernie.geckolib.animation.AnimatableManager;
|
|
import software.bernie.geckolib.util.GeckoLibUtil;
|
|
|
|
public class WaterMaskEntity extends Entity implements GeoEntity {
|
|
private final AnimatableInstanceCache cache = GeckoLibUtil.createInstanceCache(this);
|
|
|
|
public WaterMaskEntity(EntityType<WaterMaskEntity> type, Level level) {
|
|
super(type, level);
|
|
noPhysics = true;
|
|
}
|
|
|
|
@Override
|
|
public void registerControllers(AnimatableManager.ControllerRegistrar data) {
|
|
}
|
|
|
|
@Override
|
|
public AnimatableInstanceCache getAnimatableInstanceCache() {
|
|
return this.cache;
|
|
}
|
|
|
|
|
|
@Override
|
|
protected void defineSynchedData(SynchedEntityData.@NotNull Builder builder) {
|
|
}
|
|
|
|
@Override
|
|
public void baseTick() {
|
|
discard();
|
|
}
|
|
|
|
@Override
|
|
protected void readAdditionalSaveData(@NotNull CompoundTag compound) {
|
|
}
|
|
|
|
@Override
|
|
protected void addAdditionalSaveData(@NotNull CompoundTag compound) {
|
|
|
|
}
|
|
} |