mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
6b208b98bc
commit
a309488cdf
214 files changed
+9283
-9265
No files matched your search
@@ -1,68 +1,68 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
* To change this license header, choose License Headers in Project Properties. To change this template file, choose
|
||||
* Tools | Templates and open the template in the editor.
|
||||
*/
|
||||
|
||||
package minetweaker.mc1710.entity;
|
||||
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
import java.util.*;
|
||||
|
||||
import minetweaker.api.entity.IEntityDefinition;
|
||||
import minetweaker.api.item.*;
|
||||
import stanhebben.zenscript.value.*;
|
||||
|
||||
import java.util.*;
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stan
|
||||
*/
|
||||
public class MCEntityDefinition implements IEntityDefinition {
|
||||
private final EntityRegistry.EntityRegistration registration;
|
||||
|
||||
|
||||
private final EntityRegistry.EntityRegistration registration;
|
||||
|
||||
private final Map<IItemStack, IntRange> dropsToAdd = new HashMap<IItemStack, IntRange>();
|
||||
private final Map<IItemStack, IntRange> dropsToAddPlayerOnly = new HashMap<IItemStack, IntRange>();
|
||||
private final List<IItemStack> dropsToRemove = new ArrayList<IItemStack>();
|
||||
|
||||
public MCEntityDefinition(EntityRegistry.EntityRegistration registration) {
|
||||
this.registration = registration;
|
||||
}
|
||||
public MCEntityDefinition(EntityRegistry.EntityRegistration registration) {
|
||||
this.registration = registration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return registration.getEntityClass().getName();
|
||||
}
|
||||
@Override
|
||||
public String getId() {
|
||||
return registration.getEntityClass().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return registration.getEntityName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return registration.getEntityName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addDrop(IItemStack stack, int min, int max) {
|
||||
dropsToAdd.put(stack, new IntRange(min, max));
|
||||
dropsToAdd.put(stack, new IntRange(min, max));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void addPlayerOnlyDrop(IItemStack stack, int min, int max) {
|
||||
dropsToAddPlayerOnly.put(stack, new IntRange(min, max));
|
||||
dropsToAddPlayerOnly.put(stack, new IntRange(min, max));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void removeDrop(IItemStack stack) {
|
||||
dropsToRemove.add(stack);
|
||||
dropsToRemove.add(stack);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<IItemStack, IntRange> getDropsToAdd() {
|
||||
return dropsToAdd;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<IItemStack, IntRange> getDropsToAddPlayerOnly() {
|
||||
return dropsToAddPlayerOnly;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<IItemStack> getDropsToRemove() {
|
||||
return dropsToRemove;
|
||||
|
||||
Reference in new issue
Block a user