Reformated
This commit is contained in:
parent
fc1da134e7
commit
60e8008cb7
416 changed files with 5772 additions and 4573 deletions
|
@ -1,5 +1,9 @@
|
|||
package org.betterx.betterend.entity;
|
||||
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BiomeAPI;
|
||||
import org.betterx.betterend.registry.EndBiomes;
|
||||
import org.betterx.betterend.registry.EndItems;
|
||||
|
||||
import net.minecraft.core.particles.ParticleTypes;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||
|
@ -28,10 +32,6 @@ import net.minecraft.world.level.Level;
|
|||
import net.minecraft.world.level.ServerLevelAccessor;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BiomeAPI;
|
||||
import org.betterx.betterend.registry.EndBiomes;
|
||||
import org.betterx.betterend.registry.EndItems;
|
||||
|
||||
public class EndFishEntity extends AbstractSchoolingFish {
|
||||
public static final int VARIANTS_NORMAL = 5;
|
||||
public static final int VARIANTS_SULPHUR = 3;
|
||||
|
@ -39,22 +39,24 @@ public class EndFishEntity extends AbstractSchoolingFish {
|
|||
private static final EntityDataAccessor<Byte> VARIANT = SynchedEntityData.defineId(
|
||||
EndFishEntity.class,
|
||||
EntityDataSerializers.BYTE
|
||||
);
|
||||
);
|
||||
private static final EntityDataAccessor<Byte> SCALE = SynchedEntityData.defineId(
|
||||
EndFishEntity.class,
|
||||
EntityDataSerializers.BYTE
|
||||
);
|
||||
);
|
||||
|
||||
public EndFishEntity(EntityType<EndFishEntity> entityType, Level world) {
|
||||
super(entityType, world);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpawnGroupData finalizeSpawn(ServerLevelAccessor world,
|
||||
DifficultyInstance difficulty,
|
||||
MobSpawnType spawnReason,
|
||||
SpawnGroupData entityData,
|
||||
CompoundTag entityTag) {
|
||||
public SpawnGroupData finalizeSpawn(
|
||||
ServerLevelAccessor world,
|
||||
DifficultyInstance difficulty,
|
||||
MobSpawnType spawnReason,
|
||||
SpawnGroupData entityData,
|
||||
CompoundTag entityTag
|
||||
) {
|
||||
SpawnGroupData data = super.finalizeSpawn(world, difficulty, spawnReason, entityData, entityTag);
|
||||
|
||||
if (BiomeAPI.getFromBiome(world.getBiome(blockPosition())) == EndBiomes.SULPHUR_SPRINGS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue