forked from FabricMC/fabric
remove most deprecations
This commit is contained in:
parent
6b7848bea0
commit
8bda86f21d
3 changed files with 0 additions and 188 deletions
|
@ -186,159 +186,4 @@ public class FabricBlockSettings {
|
|||
public <T> T build(Function<Block.Settings, T> function) {
|
||||
return function.apply(delegate);
|
||||
}
|
||||
|
||||
/* DEPRECATIONS */
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #of(Material) of} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static FabricBlockSettings create(Material material) {
|
||||
return of(material);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #breakByHand(boolean) breakByHand} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setBreakByHand(boolean value) {
|
||||
return this.breakByHand(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #breakByTool(Tag) breakByTool} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setBreakByTool(Tag<Item> tag) {
|
||||
return this.breakByTool(tag);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #breakByTool(Tag, int) breakByTool} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setBreakByTool(Tag<Item> tag, int miningLevel) {
|
||||
return this.breakByTool(tag, miningLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setMaterialColor(MaterialColor) setMaterialColor} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setMapColor(MaterialColor color) {
|
||||
return this.materialColor(color);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setMaterialColor(DyeColor) setMaterialColor} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setMapColor(DyeColor color) {
|
||||
return this.materialColor(color);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #materialColor(DyeColor) materialColor} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setMaterialColor(MaterialColor color) {
|
||||
return this.materialColor(color);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #materialColor(DyeColor) materialColor} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setMaterialColor(DyeColor color) {
|
||||
return this.materialColor(color);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #collidable(boolean) collidable} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setCollidable(boolean value) {
|
||||
castDelegate.fabric_setCollidable(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #sounds(BlockSoundGroup) sounds} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setSoundGroup(BlockSoundGroup group) {
|
||||
return this.sounds(group);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #ticksRandomly() ticksRandomly} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings acceptRandomTicks() {
|
||||
return this.ticksRandomly();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #lightLevel(int) lightLevel} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setLuminance(int value) {
|
||||
return this.lightLevel(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #hardness(float) hardness} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setHardness(float value) {
|
||||
return this.hardness(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #resistance(float) resistance} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setResistance(float value) {
|
||||
return this.resistance(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #strength(float, float) strength} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setStrength(float hardness, float resistance) {
|
||||
return this.strength(hardness, resistance);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #dropsNothing() dropsNothing} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings noDropTable() {
|
||||
return this.dropsNothing();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #dropsLike(Block) dropsLike} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings copyDropTable(Block block) {
|
||||
return this.dropsLike(block);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #drops(Identifier) drops} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setDropTable(Identifier id) {
|
||||
return this.drops(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #friction(float) friction} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public FabricBlockSettings setFrictionCoefficient(float value) {
|
||||
return this.friction(value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,11 +64,6 @@ public class EntityTrackingRegistry {
|
|||
return entries.get(type);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public Packet createSpawnPacket(Entity entity) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void register(EntityType type, int trackingDistance, int updateIntervalTicks) {
|
||||
register(type, trackingDistance, updateIntervalTicks, true);
|
||||
}
|
||||
|
@ -76,9 +71,4 @@ public class EntityTrackingRegistry {
|
|||
public void register(EntityType type, int trackingDistance, int updateIntervalTicks, boolean alwaysUpdateVelocity) {
|
||||
entries.put(type, new Entry(trackingDistance, updateIntervalTicks, alwaysUpdateVelocity));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void registerSpawnPacketProvider(EntityType type, Function<Entity, Packet> packetFunction) {
|
||||
LOGGER.warn("[EntityTrackingRegistry] As of 19w05a, registerSpawnPacketProvider is a no-op! Update your mod!");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,29 +37,11 @@ public class FabricEntityTypeBuilder<T extends Entity> {
|
|||
private boolean alwaysUpdateVelocity = true;
|
||||
private float width = -1.0f, height = -1.0f;
|
||||
|
||||
@Deprecated
|
||||
protected FabricEntityTypeBuilder(Class<? extends T> entityClass, Function<? super World, ? extends T> function) {
|
||||
LOGGER.warn("[FabricEntityTypeBuilder] Please specify EntityCategory for " + entityClass.getName() + "!");
|
||||
this.category = EntityCategory.MISC;
|
||||
this.function = function;
|
||||
}
|
||||
|
||||
protected FabricEntityTypeBuilder(EntityCategory category, Function<? super World, ? extends T> function) {
|
||||
this.category = category;
|
||||
this.function = function;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static <T extends Entity> FabricEntityTypeBuilder<T> create(Class<? extends T> entityClass) {
|
||||
return new FabricEntityTypeBuilder<>(entityClass, (w) -> null);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static <T extends Entity> FabricEntityTypeBuilder<T> create(Class<? extends T> entityClass, Function<? super World, ? extends T> function) {
|
||||
LOGGER.warn("[FabricEntityTypeBuilder] Please specify EntityCategory for " + entityClass.getName() + "!");
|
||||
return new FabricEntityTypeBuilder<>(entityClass, function);
|
||||
}
|
||||
|
||||
public static <T extends Entity> FabricEntityTypeBuilder<T> create(EntityCategory category) {
|
||||
return new FabricEntityTypeBuilder<>(category, (w) -> null);
|
||||
}
|
||||
|
@ -95,11 +77,6 @@ public class FabricEntityTypeBuilder<T extends Entity> {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public EntityType<T> build(String id) {
|
||||
return build();
|
||||
}
|
||||
|
||||
public EntityType<T> build() {
|
||||
if (this.saveable) {
|
||||
// SNIP! Modded datafixers are not supported anyway.
|
||||
|
|
Loading…
Reference in a new issue