This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<application> | |
<component name="com.intellij.ide.ui.customization.CustomActionsSchema"> | |
<group value="SegmentedVcsControlAction" is_action="true" action_type="-1" position="2"> | |
<path value="root" /> | |
<path value="Toolbar" /> | |
<path value="Left Side" /> | |
<option name="myInitialPosition" value="-1" /> | |
</group> | |
<group seperator="true" action_type="1" position="6"> | |
<path value="root" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
namespace FramePFX.Utils { | |
/// <summary> | |
/// A class used for executing a tasks when an input signal is received, and ensuring the task is not | |
/// executed too quickly (time since last execution will exceed <see cref="MinimumInterval"/>) | |
/// </summary> | |
public class InputDrivenTaskExecutor { | |
private volatile bool condition; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T> void moveElementToEnd(T[] array, int index) { | |
T element = array[index]; | |
System.arraycopy(array, index + 1, array, index, array.length - index - 1); | |
array[array.length - 1] = element; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package reghzy.api.utils; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.entity.item.EntityItem; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.server.v1_6_R3.MinecraftServer; | |
import net.minecraft.tileentity.TileEntity; | |
import net.minecraft.tileentity.TileEntityChest; | |
import net.minecraft.world.ChunkPosition; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package reghzy.api.utils; | |
import java.util.concurrent.TimeUnit; | |
public class TickUnit { | |
private static final double C1d = 50000000.0d; | |
private static final double C2d = 50000.0d; | |
private static final double C3d = 50.0d; | |
private static final double C4d = 20.0d; | |
private static final double C5d = 1200.0d; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package reghzy.api.utils; | |
public abstract class KVObjectCache<K, V> { | |
private K lastAccessedKey; | |
private V lastAccessedValue; | |
public V get(K key) { | |
if (key == null) { | |
this.lastAccessedKey = null; | |
this.lastAccessedValue = getValue(null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Input; | |
using System.Windows.Media.Animation; | |
namespace ControlsLib.AttachedProperties { | |
public static class SliderDefaultValues { | |
public static readonly DependencyProperty IsEnabledProperty = | |
DependencyProperty.RegisterAttached( |